aboutsummaryrefslogtreecommitdiff
path: root/mirai/interrupts/table/entries.zig
diff options
context:
space:
mode:
authorBobby <[email protected]>2026-03-27 18:52:18 +0530
committerBobby <[email protected]>2026-03-27 18:52:18 +0530
commitb45cfb5ede9f1a3dd7f7323bd218a4dcaaf76b76 (patch)
tree7ea4ab655b3c37cd2a5d35d21a228b763ba413aa /mirai/interrupts/table/entries.zig
parentaec48b60740d9ea7060da6d494e3cf95b1aa8e18 (diff)
downloadakiba-b45cfb5ede9f1a3dd7f7323bd218a4dcaaf76b76.tar.xz
akiba-b45cfb5ede9f1a3dd7f7323bd218a4dcaaf76b76.zip
Refactor and implement interrupt handling and PIT driver
- 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.
Diffstat (limited to 'mirai/interrupts/table/entries.zig')
-rw-r--r--mirai/interrupts/table/entries.zig5
1 files changed, 5 insertions, 0 deletions
diff --git a/mirai/interrupts/table/entries.zig b/mirai/interrupts/table/entries.zig
new file mode 100644
index 0000000..d62b1e7
--- /dev/null
+++ b/mirai/interrupts/table/entries.zig
@@ -0,0 +1,5 @@
+//! IDT Entries Table
+
+const types = @import("../types/types.zig");
+
+pub var entries: [256]types.Gate64 = [_]types.Gate64{types.Gate64.empty()} ** 256;