Add syscall module
This commit is contained in:
parent
29b6544d8f
commit
a490ff13ae
1 changed files with 138 additions and 0 deletions
10
kernel/syscall/process.rs
Normal file
10
kernel/syscall/process.rs
Normal file
|
|
@ -0,0 +1,10 @@
|
|||
///! Process syscalls
|
||||
|
||||
use arch::interrupt::halt;
|
||||
|
||||
pub fn exit(status: usize) -> ! {
|
||||
println!("Exit {}", status);
|
||||
loop {
|
||||
unsafe { halt() };
|
||||
}
|
||||
}
|
||||
Loading…
Reference in a new issue