feat: better panic handler

This commit is contained in:
Loïc Grégoire
2026-04-17 20:35:44 -04:00
parent 927ea2e1b8
commit c68a93b302
6 changed files with 217 additions and 67 deletions
+13
View File
@@ -0,0 +1,13 @@
pub const KSym = extern struct {
addr: u64,
name_ptr: [*]const u8,
name_len: usize,
};
extern const ksyms_array: [0]KSym;
extern const ksyms_count: usize;
pub fn get_symbols() []const KSym {
const ptr = @as([*]const KSym, @ptrCast(&ksyms_array));
return ptr[0..ksyms_count];
}