Skip to content

Commit

Permalink
fix(syscalls/semaphore): remove double stack switch
Browse files Browse the repository at this point in the history
Signed-off-by: Martin Kröning <[email protected]>
  • Loading branch information
mkroening committed Mar 22, 2024
1 parent e382a37 commit 0ffc393
Showing 1 changed file with 1 addition and 5 deletions.
6 changes: 1 addition & 5 deletions src/syscalls/semaphore.rs
Original file line number Diff line number Diff line change
Expand Up @@ -124,11 +124,7 @@ pub extern "C" fn sys_sem_timedwait(sem: *const Semaphore, ms: u32) -> i32 {
kernel_function!(__sys_sem_timedwait(sem, ms))
}

extern "C" fn __sys_sem_cancelablewait(sem: *const Semaphore, ms: u32) -> i32 {
sys_sem_timedwait(sem, ms)
}

#[no_mangle]
pub extern "C" fn sys_sem_cancelablewait(sem: *const Semaphore, ms: u32) -> i32 {
kernel_function!(__sys_sem_cancelablewait(sem, ms))
kernel_function!(__sys_sem_timedwait(sem, ms))
}

0 comments on commit 0ffc393

Please sign in to comment.