From 0ffc393ee32fc31f0e8d1eb0934eee2f8ead7353 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Martin=20Kr=C3=B6ning?= Date: Fri, 22 Mar 2024 17:15:54 +0100 Subject: [PATCH] fix(syscalls/semaphore): remove double stack switch MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Martin Kröning --- src/syscalls/semaphore.rs | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/src/syscalls/semaphore.rs b/src/syscalls/semaphore.rs index 29599a2571..e493bb706d 100644 --- a/src/syscalls/semaphore.rs +++ b/src/syscalls/semaphore.rs @@ -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)) }