You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
|
//! App management syscalls
|
|
use crate::batch::run_next_app;
|
|
use crate::println;
|
|
|
|
/// 任务退出, 并立即切换任务
|
|
pub fn sys_exit(exit_code: i32) -> ! {
|
|
println!("[kernel] Application exited with code {}", exit_code);
|
|
run_next_app()
|
|
}
|