fix(mm/phys): use wrapping addition

This commit is contained in:
Loïc Grégoire
2026-04-05 22:55:51 -04:00
parent 6a8fcaeebc
commit 316e1f2d3d
+1 -1
View File
@@ -58,7 +58,7 @@ fn push_to_pool(batch: *mm.Page) void {
const new_head = GlobalHead{
.pfn = mm.struct_page_to_pfn(batch),
.tag = old_head.tag + 1,
.tag = old_head.tag +% 1,
};
old_head = batch_pool.cmpxchgWeak(old_head, new_head, .acq_rel, .acquire) orelse break;