From 497e4a1b2f6f9181518e9887991c0464bd8f6bcf Mon Sep 17 00:00:00 2001 From: Richard Qin Date: Wed, 10 Dec 2025 01:19:32 +0800 Subject: feat: Add initial Supervisor Mode Trap Handler 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. --- build/src/kernel/trap/trap.o | Bin 0 -> 1344 bytes 1 file changed, 0 insertions(+), 0 deletions(-) create mode 100644 build/src/kernel/trap/trap.o (limited to 'build/src/kernel/trap/trap.o') diff --git a/build/src/kernel/trap/trap.o b/build/src/kernel/trap/trap.o new file mode 100644 index 0000000..e7bde6b Binary files /dev/null and b/build/src/kernel/trap/trap.o differ -- cgit v1.2.3