delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/1997/10/07/22:04:59

Date: Wed, 08 Oct 1997 14:55:14 +1100
From: Bill Currie <billc AT blackmagic DOT tait DOT co DOT nz>
Subject: Re: Interrupts bite....wait...yup they do :-)
In-reply-to: <61eh12$i20@dfw-ixnews5.ix.netcom.com>
To: firewind <firewind AT metroid DOT dyn DOT ml DOT org>, djgpp AT delorie DOT com
Cc: deltener AT fm-net DOT com
Message-id: <199710080152.OAA09931@teleng1.tait.co.nz gatekeeper.tait.co.nz>
Organization: Tait Electronics Limited
MIME-version: 1.0
Comments: Authenticated sender is <billc AT blackmagic DOT tait DOT co DOT nz>

On  7 Oct 97 at 23:36, firewind wrote:

> justin deltener <deltener AT fm-net DOT com> wrote:
> > I've finally got around to programming interrupts again, and i'm so DARN
> > close i can taste it.  I think my computer is laughing at me.  Anyways
> > i'm hooking up into the SB16 sound card and for the life of me i can't
> > get it into auto-init mode!  i'm doing the same DSP commands as i was in
> > real mode, and i think the rest is correct.  It will play the DMAbuffer
> > once and thats it.  No autoinit :-(  Any ideas?

Most of this you've probably already thought of/know, but:

Did you enable the IRQ line in the PICs (programmable interrupt 
controllers, see Ralf Brown's interrupt list (ports.lst) for 
details)? 
Did you hook the correct interrupt? 
Is the DMA set up correctly for autoinit?

Is this under windows? 3.1x has some bugs with the 
interrupt flag and 95 doesn't always let you get at the soundblaster 
hardware (seems to depend on wheter or not something else is trying 
to use it), especially the interrupt.

Sorry I can't be of more help, but most of my recent interrupt 
experience has be with my custom kernel and been for IDE and FDC 
drivers and the like. I also havn't got a SB16 (only an SBP8).

> 
> Wait... the Sound Blaster interrupt would be real mode, wouldn't it?
> So shouldn't you use: (where rm_regs is a __dpmi_regs created
> previously in the function)

No, hardware interrupts go to protected mode first and then real mode 
only if not hooked by protected mode.
Bill
--
Leave others their otherness.

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019