From: Amancio Hasty Jr <hasty@netcom.com>
Make sure calls to gus_voice_irq() are protected from interrupts.
This commit is contained in:
parent
73b69d9921
commit
92f1946205
@ -149,6 +149,7 @@ void
|
||||
gusintr (int unit)
|
||||
{
|
||||
unsigned char src;
|
||||
unsigned long flags;
|
||||
|
||||
while (1)
|
||||
{
|
||||
@ -175,7 +176,9 @@ gusintr (int unit)
|
||||
|
||||
if (src & (WAVETABLE_IRQ | ENVELOPE_IRQ))
|
||||
{
|
||||
DISABLE_INTR (flags);
|
||||
gus_voice_irq ();
|
||||
RESTORE_INTR (flags);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user