diff options
Diffstat (limited to 'Kernel')
| -rw-r--r-- | Kernel/Patches/IntInit2FDC.HC | 5 | ||||
| -rw-r--r-- | Kernel/Patches/IntsInitFDC.HC | 19 |
2 files changed, 24 insertions, 0 deletions
diff --git a/Kernel/Patches/IntInit2FDC.HC b/Kernel/Patches/IntInit2FDC.HC new file mode 100644 index 0000000..0046fb0 --- /dev/null +++ b/Kernel/Patches/IntInit2FDC.HC @@ -0,0 +1,5 @@ +// PATCH: Make IntInit2() set up the IDT to handle FDC IRQ's +// FILE: ::/Kernel/KInts.HC +// TO INSTALL: #include this file after the line that sets the wake int handler. + +IntEntrySet(I_FDC,&IRQ_FDC);
\ No newline at end of file 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 |
