mirror of
https://github.com/Mathewnd/Astral.git
synced 2026-10-31 14:38:21 +00:00
cpu: change _cpu()->thread calls to current_thread() to fix smp race
This commit is contained in:
@@ -36,7 +36,7 @@ int poll_initdesc(polldesc_t *desc, size_t size) {
|
||||
return ENOMEM;
|
||||
}
|
||||
|
||||
desc->thread = _cpu()->thread;
|
||||
desc->thread = current_thread();
|
||||
desc->size = size;
|
||||
SPINLOCK_INIT(desc->lock);
|
||||
SPINLOCK_INIT(desc->eventlock);
|
||||
|
||||
Reference in New Issue
Block a user