1
0
mirror of https://git.FreeBSD.org/src.git synced 2024-12-15 10:17:20 +00:00

- Fixed counter number (timer2 -> timer1).

- Fixed operator in pcaintr (andb -> orb).

Pointed out by:	nyan
This commit is contained in:
KATO Takenori 2000-04-12 13:19:44 +00:00
parent 00add4ed4f
commit 86cc4d7dfa
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=59174

View File

@ -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"