diff options
Diffstat (limited to 'Kernel/Patches/IntsInitFDC.HC')
| -rw-r--r-- | Kernel/Patches/IntsInitFDC.HC | 19 |
1 files changed, 19 insertions, 0 deletions
diff --git a/Kernel/Patches/IntsInitFDC.HC b/Kernel/Patches/IntsInitFDC.HC new file mode 100644 index 0000000..5cd3254 --- /dev/null +++ b/Kernel/Patches/IntsInitFDC.HC @@ -0,0 +1,19 @@ +// PATCH: Make IntsInit() unmask IRQ6 +// FILE: ::/Kernel/KInts.HC +// TO INSTALL: Comment out the original fun. +// THEN: #include this file after it. + +U0 IntsInit() +{//Init 8259 + OutU8(0x20,0x11); //IW1 + OutU8(0xA0,0x11); //IW1 + OutU8(0x21,0x20); //IW2 + OutU8(0xA1,0x28); //IW2 + OutU8(0x21,0x04); //IW3 + OutU8(0xA1,0x02); //IW3 + OutU8(0x21,0x0D); //IW4 + OutU8(0xA1,0x09); //IW4 + //Mask all but IRQ0 (timer), IRQ2 Cascade, and IRQ6 (floppy). + OutU8(0x21,0xFA); + OutU8(0xA1,0xFF); +}
\ No newline at end of file |
