aboutsummaryrefslogtreecommitdiff
path: root/mubios/arch/irq.S
Commit message (Collapse)AuthorAgeFilesLines
* [mubios] Initialize the 8042 keyboard controllerRichard Qin31 hours1-17/+13
| | | | | | | | | | | | | | | POST only unmasked IRQ1 in the PIC and never configured the 8042 itself, so the keyboard stayed in its post-reset disabled state: the clock was inhibited and no scan code ever reached the output buffer. IRQ1 never fired, the BDA keyboard buffer stayed empty, and GRUB polling INT 16h AH=01h never saw a key. Add kbd_init() to disable both ports, drain the output buffer, clear the clock inhibit bits in the command byte, enable the keyboard and auxiliary IRQs and select set 1 translation, then enable scanning with 0xF4. The IRQ1 handler now checks the status register for a pending output byte before reading the data port and drops auxiliary port bytes. The set 2 break prefix tracking is gone because translation is enabled.
* [mubios] Add EDD parameters and normalize PS/2 inputRichard Qin2 days1-3/+17
|
* [mubios] Handle IRQ7 and mask unused IOAPIC inputsRichard Qin2 days1-0/+13
|
* [mubios] Fixed BDA Offset and IRQ1 Save OrderRichard Qin3 days1-4/+11
| | | | Signed-off-by: Richard Qin <richard.qin.x@gmail.com>
* [mubios] Store and Restore DS in irq0_entryRichard Qin3 days1-0/+2
| | | | Signed-off-by: Richard Qin <richard.qin.x@gmail.com>
* [mubios] Implement INT 16h Keyboard ServiceRichard Qin3 days1-0/+29
| | | | Signed-off-by: Richard Qin <richard.qin.x@gmail.com>
* [mubios] Have IRQ0 maintain the BIOS clock, and implement INT 1Ah AH=00h.Richard Qin3 days1-0/+29
| | | | Signed-off-by: Richard Qin <richard.qin.x@gmail.com>
* [mubios] Create 16-bit entry points for IRQ0/IRQ1 and install the IVT vectors.Richard Qin3 days1-0/+51
Signed-off-by: Richard Qin <richard.qin.x@gmail.com>