ke: fix shootdown bugs

This commit is contained in:
Loïc Grégoire
2026-09-26 13:11:20 -04:00
parent 021e213fb2
commit c7673dc438
+6
View File
@@ -61,6 +61,8 @@ fn pcpu_init() linksection(r.init) void {
.payload = undefined,
.link = undefined,
});
local.npages = .init(0);
}
comptime {
@@ -189,6 +191,10 @@ pub fn submit(state: ShootdownState, target_mask: ke.CpuMask) !void {
// Flush on our local TLB.
flush_range(state.base, state.npages);
if (target_mask.is_all(false)) {
return;
}
// Get a slot and fill it.
const curcpu = ke.cpu.current();
const cpu = percpu.local();