summaryrefslogtreecommitdiff
path: root/include/common
diff options
context:
space:
mode:
authorRichard Qin <richard.qin.x@gmail.com>2025-12-10 01:19:32 +0800
committerRichard Qin <richard.qin.x@gmail.com>2025-12-10 01:19:32 +0800
commit497e4a1b2f6f9181518e9887991c0464bd8f6bcf (patch)
treeefd498dd66b8995a4bd0e31ca6af454b4ef342d2 /include/common
parentc36e1b5e5e069ce1735dcc2a94aa45ba72ea2441 (diff)
downloadlume-497e4a1b2f6f9181518e9887991c0464bd8f6bcf.tar.gz
lume-497e4a1b2f6f9181518e9887991c0464bd8f6bcf.tar.xz
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.
Diffstat (limited to 'include/common')
-rw-r--r--include/common/types.h4
1 files changed, 3 insertions, 1 deletions
diff --git a/include/common/types.h b/include/common/types.h
index 56500c5..4a22791 100644
--- a/include/common/types.h
+++ b/include/common/types.h
@@ -11,4 +11,6 @@ typedef signed int int32_t;
typedef signed long long int64_t;
typedef uint64_t size_t;
-typedef uint64_t uintptr_t; \ No newline at end of file
+typedef uint64_t uintptr_t;
+
+typedef uint64_t uint64; \ No newline at end of file