From 0c200b792090cda95e3fd17ba4de334227b5755b Mon Sep 17 00:00:00 2001 From: Harley Travis Date: Mon, 22 Jun 2026 02:10:42 -0500 Subject: Add patches to enable the FDC IRQ on startup --- Kernel/Patches/IntsInitFDC.HC | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) create mode 100644 Kernel/Patches/IntsInitFDC.HC (limited to 'Kernel/Patches/IntsInitFDC.HC') 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 -- cgit v1.2.3