diff options
author | kato <kato@FreeBSD.org> | 2000-04-12 13:19:44 +0000 |
---|---|---|
committer | kato <kato@FreeBSD.org> | 2000-04-12 13:19:44 +0000 |
commit | 989ac2d698d83afd2733194fad8ca1cb98aaa61c (patch) | |
tree | 56e5e92e66639c6f85de0fdf9b9a4bd406b64c69 | |
parent | da28ab7c7a2c005890bd21c3b85c2145541985ff (diff) | |
download | FreeBSD-src-989ac2d698d83afd2733194fad8ca1cb98aaa61c.zip FreeBSD-src-989ac2d698d83afd2733194fad8ca1cb98aaa61c.tar.gz |
- Fixed counter number (timer2 -> timer1).
- Fixed operator in pcaintr (andb -> orb).
Pointed out by: nyan
-rw-r--r-- | sys/pc98/pc98/pcaudio.c | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/sys/pc98/pc98/pcaudio.c b/sys/pc98/pc98/pcaudio.c index 5f4972b..b2f9452 100644 --- a/sys/pc98/pc98/pcaudio.c +++ b/sys/pc98/pc98/pcaudio.c @@ -309,11 +309,12 @@ pca_continue(void) int x = splhigh(); #ifdef PC98 - pca_status.oldval = inb(IO_PPI) & ~0x08; + pca_status.oldval = inb(IO_PPI) & ~0x08; + acquire_timer1(TIMER_LSB|TIMER_ONESHOT); #else - pca_status.oldval = inb(IO_PPI) | 0x03; -#endif + pca_status.oldval = inb(IO_PPI) | 0x03; acquire_timer2(TIMER_LSB|TIMER_ONESHOT); +#endif acquire_timer0(INTERRUPT_RATE, pcaintr); pca_status.timer_on = 1; splx(x); @@ -559,7 +560,7 @@ pcaintr(struct clockframe *frame) disable_intr(); #ifdef PC98 __asm__("outb %0,$0x35\n" - "andb $0x08,%0\n" + "orb $0x08,%0\n" "outb %0,$0x35" #else __asm__("outb %0,$0x61\n" |