Add debug infos on panic

This commit is contained in:
2026-03-22 14:27:56 +01:00
parent 897775f63a
commit 15ecefb5fb
14 changed files with 282 additions and 50 deletions

View File

@@ -1,3 +1,10 @@
#[path = "unsupported/mod.rs"]
mod unsupported;
pub use self::unsupported::*;
#[path = "../../../../../crates/shared/src/syscall.rs"]
mod syscall;
/// # Safety
/// `argc` and `argv` are passed by the kernel
#[unsafe(no_mangle)]
@@ -9,3 +16,8 @@ pub unsafe extern "C" fn _start(argc: isize, argv: *const *const u8) -> isize {
unsafe { main(argc, argv) }
}
pub fn abort_internal() -> ! {
// todo real abort
syscall::exit()
}