ke: make getting the current thread atomic

This commit is contained in:
Loïc Grégoire
2026-10-23 23:47:23 -04:00
parent 0a843157c2
commit 76147556a3
10 changed files with 38 additions and 24 deletions
+1 -1
View File
@@ -443,7 +443,7 @@ pub fn block(
queue: Queue,
) void {
const chain = chain_for(obj);
const curtd = kep.sched.percpu.local().current_thread.?;
const curtd = ke.thread.current();
const ipl = ke.ipl.current();
var ts = turnstile;