Wrap syscalls in user_lib && change xstate to exit_code
This commit is contained in:
parent
923abbbc96
commit
15ea8d934a
5 changed files with 19 additions and 14 deletions
|
@ -4,8 +4,8 @@ use crate::task::{
|
|||
};
|
||||
use crate::timer::get_time_ms;
|
||||
|
||||
pub fn sys_exit(xstate: i32) -> ! {
|
||||
println!("[kernel] Application exited with code {}", xstate);
|
||||
pub fn sys_exit(exit_code: i32) -> ! {
|
||||
println!("[kernel] Application exited with code {}", exit_code);
|
||||
exit_current_and_run_next();
|
||||
panic!("Unreachable in sys_exit!");
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue