diff options
Diffstat (limited to 'arch/x86/kernel/i8259.c')
-rw-r--r-- | arch/x86/kernel/i8259.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/arch/x86/kernel/i8259.c b/arch/x86/kernel/i8259.c index e7cc5370cd2f..16cb827a5b27 100644 --- a/arch/x86/kernel/i8259.c +++ b/arch/x86/kernel/i8259.c | |||
@@ -329,8 +329,8 @@ static void init_8259A(int auto_eoi) | |||
329 | */ | 329 | */ |
330 | outb_pic(0x11, PIC_MASTER_CMD); /* ICW1: select 8259A-1 init */ | 330 | outb_pic(0x11, PIC_MASTER_CMD); /* ICW1: select 8259A-1 init */ |
331 | 331 | ||
332 | /* ICW2: 8259A-1 IR0-7 mapped to 0x30-0x37 */ | 332 | /* ICW2: 8259A-1 IR0-7 mapped to ISA_IRQ_VECTOR(0) */ |
333 | outb_pic(IRQ0_VECTOR, PIC_MASTER_IMR); | 333 | outb_pic(ISA_IRQ_VECTOR(0), PIC_MASTER_IMR); |
334 | 334 | ||
335 | /* 8259A-1 (the master) has a slave on IR2 */ | 335 | /* 8259A-1 (the master) has a slave on IR2 */ |
336 | outb_pic(1U << PIC_CASCADE_IR, PIC_MASTER_IMR); | 336 | outb_pic(1U << PIC_CASCADE_IR, PIC_MASTER_IMR); |
@@ -342,8 +342,8 @@ static void init_8259A(int auto_eoi) | |||
342 | 342 | ||
343 | outb_pic(0x11, PIC_SLAVE_CMD); /* ICW1: select 8259A-2 init */ | 343 | outb_pic(0x11, PIC_SLAVE_CMD); /* ICW1: select 8259A-2 init */ |
344 | 344 | ||
345 | /* ICW2: 8259A-2 IR0-7 mapped to IRQ8_VECTOR */ | 345 | /* ICW2: 8259A-2 IR0-7 mapped to ISA_IRQ_VECTOR(8) */ |
346 | outb_pic(IRQ8_VECTOR, PIC_SLAVE_IMR); | 346 | outb_pic(ISA_IRQ_VECTOR(8), PIC_SLAVE_IMR); |
347 | /* 8259A-2 is a slave on master's IR2 */ | 347 | /* 8259A-2 is a slave on master's IR2 */ |
348 | outb_pic(PIC_CASCADE_IR, PIC_SLAVE_IMR); | 348 | outb_pic(PIC_CASCADE_IR, PIC_SLAVE_IMR); |
349 | /* (slave's support for AEOI in flat mode is to be investigated) */ | 349 | /* (slave's support for AEOI in flat mode is to be investigated) */ |