mikros: Send main return value to proc_man on exit

This commit is contained in:
pjht 2024-11-08 13:37:10 -06:00
parent e94e542f25
commit 8fa25a4322
Signed by: pjht
GPG Key ID: CA239FC6934E6F3A

View File

@ -12,7 +12,7 @@ pub extern "C" fn _start() {
let argv;
unsafe {
asm!("int 0x80", in("rax") 19, lateout("rax") argv, lateout("rcx") argc);
main(argc, argv);
asm!("int 0x80", in("rax") 1);
let code = main(argc, argv);
crate::sys::os::exit(code);
};
}