diff options
author | Himbeer <himbeer@disroot.org> | 2024-07-27 15:57:46 +0200 |
---|---|---|
committer | Himbeer <himbeer@disroot.org> | 2024-07-27 15:57:46 +0200 |
commit | fc888ca37914ffc3aecc111f8c8fd3fc07869367 (patch) | |
tree | 289ef69a74c315e47ca4d076c57deaf1c4bf031b /src/lib | |
parent | a19ce5386c97151312d7cf5b54f404c96ca41365 (diff) |
kernel: Update general panic message to include sepc and stval CSRs
Diffstat (limited to 'src/lib')
-rw-r--r-- | src/lib/instructions.zig | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/lib/instructions.zig b/src/lib/instructions.zig index 94c0059..d9e5bf8 100644 --- a/src/lib/instructions.zig +++ b/src/lib/instructions.zig @@ -89,6 +89,7 @@ pub const sie = Csr(interrupts.Enable, "sie"); pub const sip = Csr(interrupts.Enable, "sip"); pub const sscratch = Csr(usize, "sscratch"); pub const sepc = Csr(usize, "sepc"); +pub const stval = Csr(usize, "stval"); pub fn Csr(comptime T: type, csr: []const u8) type { if (csr.len > 8) @compileError("CSR name length exceeds 8 characters"); |