mm: make physical allocation blocking (WIP)

This commit is contained in:
Loïc Grégoire
2026-06-29 22:33:43 -04:00
parent 11c858c5e8
commit 85e6a8fec9
11 changed files with 160 additions and 72 deletions
+3 -2
View File
@@ -20,10 +20,11 @@ fn reclaim_state(state: *ke.ShootdownState) void {
const npages = state.npages;
// Reclaim the virtual address space.
const ipl = space.lock.acquire();
space.lock.acquire();
space.arena.free(base, @as(usize, npages) * mm.page_size) catch unreachable;
space.lock.release(ipl);
space.lock.release();
_ = async_shootdowns.fetchAdd(1, .monotonic);