Remove the shim kernel crate

This commit is contained in:
Zhang Junyang
2024-08-19 19:15:22 +08:00
committed by Tate, Hongliang Tian
parent d76c7a5b1e
commit dafd16075f
416 changed files with 231 additions and 273 deletions

View File

@ -0,0 +1,15 @@
// SPDX-License-Identifier: MPL-2.0
use crate::{
prelude::*,
process::{do_exit_group, TermStatus},
syscall::SyscallReturn,
};
/// Exit all thread in a process.
pub fn sys_exit_group(exit_code: u64, _ctx: &Context) -> Result<SyscallReturn> {
// Exit all thread in current process
let term_status = TermStatus::Exited(exit_code as _);
do_exit_group(term_status);
Ok(SyscallReturn::Return(0))
}