feat: userspace faults

This commit is contained in:
Zoe
2026-09-07 13:47:25 -05:00
parent bf1a81cf82
commit a4b6e010ec
5 changed files with 41 additions and 46 deletions
+2 -2
View File
@@ -40,9 +40,9 @@ pub extern "C" fn _start() -> ! {
map_stack(client_as, STACK_TOP, STACK_PAGES);
let _ = sys_task_create(client_as, client_entry, STACK_TOP).unwrap();
let ptr = 0xDEAD_BEEF as *mut u32;
// call a bogus system call
unsafe {
core::ptr::write_volatile(&mut *ptr, 0xDEAD_BEEF);
core::arch::asm!("syscall", in("rax") 134);
}
sys_exit(0);