summaryrefslogtreecommitdiff
path: root/include/kernel/trap.h
Commit message (Collapse)AuthorAgeFilesLines
* feat: Add initial Supervisor Mode Trap HandlerRichard Qin2025-12-101-0/+50
Implement the initial mechanism for handling traps and exceptions in Supervisor Mode. Set up the stvec Control and Status Register (CSR) to direct all S-Mode Traps (Interrupts and Exceptions) to a unified assembly entry point. Implemented assembly code for saving and restoring the Trap Context (register state). Provides the foundational framework necessary for future Timer Interrupts and System Calls.