mirror of
https://github.com/Mathewnd/Astral.git
synced 2026-10-28 21:28:21 +00:00
cpu: change _cpu()->thread calls to current_thread() to fix smp race
This commit is contained in:
@@ -14,7 +14,7 @@ syscallret_t syscall_killthread(context_t *context, int pid, int tid, int signal
|
||||
return ret;
|
||||
}
|
||||
|
||||
proc_t *sender = _cpu()->thread->proc;
|
||||
proc_t *sender = current_thread()->proc;
|
||||
proc_t *target = sched_getprocfrompid(pid);
|
||||
if (target == NULL) {
|
||||
ret.errno = ESRCH;
|
||||
|
||||
Reference in New Issue
Block a user