From 2de1c550cab8a5812dc9965313fce00816a003eb Mon Sep 17 00:00:00 2001 From: Russ Cox Date: Sat, 11 Jul 2009 19:24:56 -0700 Subject: trap cleanup IRQ_OFFSET -> T_IRQ0 (a trap number not an IRQ number) T_SYSCALL 0x30 -> 0x40 (move out of IRQ range) --- picirq.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'picirq.c') diff --git a/picirq.c b/picirq.c index be505a0..ff86831 100644 --- a/picirq.c +++ b/picirq.c @@ -45,7 +45,7 @@ picinit(void) outb(IO_PIC1, 0x11); // ICW2: Vector offset - outb(IO_PIC1+1, IRQ_OFFSET); + outb(IO_PIC1+1, T_IRQ0); // ICW3: (master PIC) bit mask of IR lines connected to slaves // (slave PIC) 3-bit # of slave's connection to master @@ -63,7 +63,7 @@ picinit(void) // Set up slave (8259A-2) outb(IO_PIC2, 0x11); // ICW1 - outb(IO_PIC2+1, IRQ_OFFSET + 8); // ICW2 + outb(IO_PIC2+1, T_IRQ0 + 8); // ICW2 outb(IO_PIC2+1, IRQ_SLAVE); // ICW3 // NB Automatic EOI mode doesn't tend to work on the slave. // Linux source code says it's "to be investigated". -- cgit v1.2.3