aboutsummaryrefslogtreecommitdiff
path: root/mirai/asm/interrupts/interrupts.zig
AgeCommit message (Collapse)AuthorFilesLines
8 daysReorg: move assembly to root asm/ (wired as build module), delete stray ↵Bobby1-11/+0
hikari/build.zig, keep single root build.zig
2026-03-27Refactor and implement interrupt handling and PIT driverBobby1-0/+11
- Refactored CPU context structure for better readability. - Enhanced corpse and exception structures with clearer formatting. - Improved frame structure for consistency. - Added interrupt flag operations for enabling and disabling interrupts. - Implemented IDT (Interrupt Descriptor Table) operations including loading and setting gates. - Created PIC (Programmable Interrupt Controller) initialization and masking functions. - Developed PIT (Programmable Interval Timer) driver with initialization and handler functions. - Established common interrupt handler structure and exception handling stubs. - Added hardware IRQ handling for IRQs 0-15. - Introduced IDT entry and gate descriptor types for better organization. - Ensured proper handling of interrupt and exception vectors.