From b72f3ee00df9512e912a97e56b213a6e8a67d4a1 Mon Sep 17 00:00:00 2001 From: kamkow1 Date: Sat, 4 Oct 2025 01:12:03 +0200 Subject: [PATCH] fix schedrelease() syscall --- kernel/syscall/sched.c | 8 +------- 1 file changed, 1 insertion(+), 7 deletions(-) diff --git a/kernel/syscall/sched.c b/kernel/syscall/sched.c index f659307..a9bc393 100644 --- a/kernel/syscall/sched.c +++ b/kernel/syscall/sched.c @@ -7,11 +7,5 @@ #include "hal/hal.h" int32_t SYSCALL0(sys_schedrelease) { - spinlock_acquire(&PROCS.spinlock); - Proc *proc = PROCS.current; - spinlock_release(&PROCS.spinlock); - - /* proc_sched((void *)frame); */ - - return E_OK; + return E_DOSCHEDULING; }