feat: userspace round-trip — syscall stubs, ecall dispatch, U-mode entry and exit on QEMU

This commit is contained in:
2026-10-18 02:15:35 +02:00
parent 450d74d07f
commit 570fe22bee
11 changed files with 322 additions and 115 deletions

View File

@@ -0,0 +1,24 @@
#![no_std]
#![no_main]
use core::arch::global_asm;
global_asm!(
r#"
.section .text.entry
.globl _start
_start:
call main
j _start
"#
);
#[unsafe(no_mangle)]
extern "C" fn main() -> ! {
userspace::syscall::exit();
}
#[panic_handler]
fn panic(_: &core::panic::PanicInfo) -> ! {
loop {}
}