mirror of
https://github.com/Mathewnd/Astral.git
synced 2026-10-30 22:18:21 +00:00
cpu: change _cpu()->thread calls to current_thread() to fix smp race
This commit is contained in:
@@ -4,7 +4,7 @@
|
||||
syscallret_t syscall_gettid(context_t *) {
|
||||
syscallret_t ret = {
|
||||
.errno = 0,
|
||||
.ret = _cpu()->thread->tid
|
||||
.ret = current_thread()->tid
|
||||
};
|
||||
|
||||
return ret;
|
||||
|
||||
Reference in New Issue
Block a user