blob: 5cd3254ce3b56e495950410d94334df3db0f49bd (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
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);
}
|