mikros: Add the clear_exited syscall
This commit is contained in:
parent
8fd0bc644f
commit
dbfeb119b5
@ -41,3 +41,8 @@ pub fn irq_register(irq: u8) -> Result<(), ()> {
|
|||||||
pub fn wake_new(pid: u64) -> Result<(), ()> {
|
pub fn wake_new(pid: u64) -> Result<(), ()> {
|
||||||
syscalls::wake_new(pid)
|
syscalls::wake_new(pid)
|
||||||
}
|
}
|
||||||
|
|
||||||
|
#[stable(feature = "mikros", since = "1.80.0")]
|
||||||
|
pub fn clear_exited(pid: u64) -> Result<(), ()> {
|
||||||
|
syscalls::clear_exited(pid)
|
||||||
|
}
|
||||||
|
@ -194,3 +194,7 @@ pub fn irq_register(irq: u8) -> Result<(), ()> {
|
|||||||
pub fn wake_new(pid: u64) -> Result<(), ()> {
|
pub fn wake_new(pid: u64) -> Result<(), ()> {
|
||||||
if syscall1(24, pid) == 0 { Ok(()) } else { Err(()) }
|
if syscall1(24, pid) == 0 { Ok(()) } else { Err(()) }
|
||||||
}
|
}
|
||||||
|
|
||||||
|
pub fn clear_exited(pid: u64) -> Result<(), ()> {
|
||||||
|
if syscall1(25, pid) == 0 { Ok(()) } else { Err(()) }
|
||||||
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user