mirror of
https://github.com/rdmsr/zag.git
synced 2026-11-01 15:48:21 +00:00
fix(mm/heap): rename alloc_pages to alloc
This commit is contained in:
+1
-1
@@ -10,7 +10,7 @@ pub fn init() void {
|
||||
heap_arena.init("kernel heap", mi.impl.kernel_heap_base, b.tib(16), mm.page_size) catch @panic("failed to initialize kernel heap arena");
|
||||
}
|
||||
|
||||
pub fn alloc_pages(size: usize) mm.Error!*anyopaque {
|
||||
pub fn alloc(size: usize) mm.Error!*anyopaque {
|
||||
const ipl = heap_lock.acquire();
|
||||
defer heap_lock.release(ipl);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user