aboutsummaryrefslogtreecommitdiff
path: root/mirai/interrupts
AgeCommit message (Collapse)AuthorFilesLines
2026-03-27refactor: streamline interrupt and exception handler implementationsBobby2-82/+48
2026-03-27Refactor and implement interrupt handling and PIT driverBobby18-0/+535
- 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.
2026-02-24Bunch of stuff moved as .old for new arch changeBobby4-127/+0
2026-02-23feat: Enhance Kata memory management with stack growth support and ↵Bobby1-2/+11
additional user stack properties
2026-02-15refactor: Modularize IDT and PIC handling, improve structure and organizationBobby4-74/+77
2026-02-15Refactor Kata Memory Management and SchedulerBobby1-1/+1
- Updated memory management in `memory.zig` to improve virtual buffer allocation and deallocation. - Removed `sensei.zig` and refactored scheduling logic into new files: `queue.zig`, `sensei.zig`, and `waker.zig`. - Introduced `attachment.zig` for managing attachments with new constants and limits. - Created `pool.zig` for managing the Kata pool, including creation and dissolution of Katas. - Enhanced `types.zig` to define new structures and enums for Katas and their states. - Improved context switching in `shift.zig` to streamline Kata execution state management. - Updated file references and imports across the codebase to reflect new structure.
2026-02-15Refactor Crimson Panic Handler and Exception ManagementBobby1-1/+1
- Renamed panic.zig to crimson.zig for clarity and restructured panic handling functions. - Moved exception handling logic from exceptions.zig to a new exception.zig file. - Updated imports across the codebase to reflect the new file structure. - Introduced a new types.zig file to define Context and ExceptionFrame structures. - Added formatting utilities in format.zig for better register and stack frame representation. - Implemented screen rendering functions in render.zig for displaying error messages and system state during panic. - Consolidated color definitions in colors.zig and added new constants for better readability. - Removed obsolete exception handling code and integrated it into the new structure.
2026-02-15Refactor I/O operations and update driver importsBobby1-12/+12
- Renamed I/O port functions for clarity: `write_port_byte` to `out_byte`, `read_port_byte` to `in_byte`, `write_port_word` to `out_word`, `read_port_word` to `in_word`, `write_port_long` to `out_long`, and `read_port_long` to `in_long`. - Updated import paths for serial, ahci, ata, gpt, keyboard, terminal, and other drivers to reflect new directory structure. - Replaced instances of `read_file_by_path` with `view_unit_at` in various files for consistency. - Added new utility functions for AHCI FIS setup and defined types for AHCI and PCI. - Introduced string copy utilities for handling strings from Kata pointers.
2026-02-13Refactor interrupt handling and syscall entryBobby1-132/+45
- Moved ISR and IRQ handler definitions to a new assembly file (isr.zig). - Simplified IDT setup by using ISR and IRQ handlers from isr.zig. - Replaced inline assembly for IRQ handlers with calls to new ISR functions. - Introduced a new context switching mechanism in context.zig for Kata execution. - Updated syscall entry handling in entry.zig to streamline context saving and restoring. - Removed redundant context structures and functions from shift.zig. - Improved clarity and organization of syscall and interrupt handling code.
2026-01-28refactor: Replace inline assembly with CPU and I/O functions across multiple ↵Bobby1-35/+19
modules
2025-12-11updated interrupts, invocations, kata, and paging to switch to Layer 3Bobby1-3/+6
2025-12-09kata (processes) and sensei (scheduler) using CFS lite systemBobby1-39/+5
2025-12-09add gdt and tssBobby1-0/+38
2025-12-09crimson panic handler for mirai; move exception handling from idt to crimsonBobby1-274/+6
2025-11-28improved IDT and keyboard driversBobby1-0/+479