mirror of
https://github.com/rdmsr/zag.git
synced 2026-11-02 08:08:21 +00:00
ke: fix shootdown bugs
This commit is contained in:
@@ -61,6 +61,8 @@ fn pcpu_init() linksection(r.init) void {
|
|||||||
.payload = undefined,
|
.payload = undefined,
|
||||||
.link = undefined,
|
.link = undefined,
|
||||||
});
|
});
|
||||||
|
|
||||||
|
local.npages = .init(0);
|
||||||
}
|
}
|
||||||
|
|
||||||
comptime {
|
comptime {
|
||||||
@@ -189,6 +191,10 @@ pub fn submit(state: ShootdownState, target_mask: ke.CpuMask) !void {
|
|||||||
// Flush on our local TLB.
|
// Flush on our local TLB.
|
||||||
flush_range(state.base, state.npages);
|
flush_range(state.base, state.npages);
|
||||||
|
|
||||||
|
if (target_mask.is_all(false)) {
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
// Get a slot and fill it.
|
// Get a slot and fill it.
|
||||||
const curcpu = ke.cpu.current();
|
const curcpu = ke.cpu.current();
|
||||||
const cpu = percpu.local();
|
const cpu = percpu.local();
|
||||||
|
|||||||
Reference in New Issue
Block a user