1
0
mirror of https://git.FreeBSD.org/src.git synced 2024-12-14 10:09:48 +00:00

- Unlock the clock lock before calling timeout in sysbeep(). This is almost

the same code that i386/isa/clock.c uses.
This commit is contained in:
Jeff Roberson 2003-11-13 09:24:21 +00:00
parent 4e92419dcd
commit 08569709d1
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=122607

View File

@ -737,13 +737,13 @@ sysbeep(int pitch, int period)
outb(TIMER_CNTR2, pitch);
outb(TIMER_CNTR2, (pitch>>8));
mtx_unlock_spin(&clock_lock);
if (!beeping) {
/* enable counter2 output to speaker */
if (pitch) outb(IO_PPI, inb(IO_PPI) | 3);
beeping = period;
timeout(sysbeepstop, (void *)NULL, period);
}
mtx_unlock_spin(&clock_lock);
return (0);
}