[PATCH] -mm: use proper defines for i8259A I/O

From: Andreas Mohr
Date: Tue May 23 2006 - 14:54:29 EST


Hello all,

use proper defines instead of "dirty" code using open-coded values...

i386 run-tested on 2.6.17-rc4-mm3.

Signed-off-by: Andreas Mohr <andi@xxxxxxxx>


diff -urN linux-2.6.17-rc4-mm3.orig/arch/i386/kernel/i8259.c linux-2.6.17-rc4-mm3.my/arch/i386/kernel/i8259.c
--- linux-2.6.17-rc4-mm3.orig/arch/i386/kernel/i8259.c 2006-05-23 19:14:13.000000000 +0200
+++ linux-2.6.17-rc4-mm3/arch/i386/kernel/i8259.c 2006-05-22 15:47:03.000000000 +0200
@@ -271,8 +271,8 @@
* the kernel initialization code can get it
* out of.
*/
- outb(0xff, 0x21); /* mask all of 8259A-1 */
- outb(0xff, 0xA1); /* mask all of 8259A-1 */
+ outb(0xff, PIC_MASTER_IMR); /* mask all of 8259A-1 */
+ outb(0xff, PIC_SLAVE_IMR); /* mask all of 8259A-1 */
return 0;
}

-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/