mikros: Add the clear_exited syscall

This commit is contained in:
pjht 2024-11-03 11:06:14 -06:00
parent 8fd0bc644f
commit dbfeb119b5
Signed by: pjht
GPG Key ID: 7B5F6AFBEC7EE78E
2 changed files with 9 additions and 0 deletions

View File

@ -41,3 +41,8 @@ pub fn irq_register(irq: u8) -> Result<(), ()> {
pub fn wake_new(pid: u64) -> Result<(), ()> {
syscalls::wake_new(pid)
}
#[stable(feature = "mikros", since = "1.80.0")]
pub fn clear_exited(pid: u64) -> Result<(), ()> {
syscalls::clear_exited(pid)
}

View File

@ -194,3 +194,7 @@ pub fn irq_register(irq: u8) -> Result<(), ()> {
pub fn wake_new(pid: u64) -> Result<(), ()> {
if syscall1(24, pid) == 0 { Ok(()) } else { Err(()) }
}
pub fn clear_exited(pid: u64) -> Result<(), ()> {
if syscall1(25, pid) == 0 { Ok(()) } else { Err(()) }
}