From 0b319b2a9b5faec3c869da8b12151aa5734b629f Mon Sep 17 00:00:00 2001 From: Nathan Ringo Date: Tue, 17 Sep 2024 01:28:51 -0500 Subject: Minimally working allocator. --- crates/kernel/src/alloc.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'crates/kernel/src/alloc.rs') diff --git a/crates/kernel/src/alloc.rs b/crates/kernel/src/alloc.rs index 920fe0a..3ae72bc 100644 --- a/crates/kernel/src/alloc.rs +++ b/crates/kernel/src/alloc.rs @@ -151,7 +151,7 @@ pub unsafe fn init_kernel_virtual_memory_allocator(himem_top: usize) { // Donate the bootstrap segment to the heap. // // UNWRAP: Himem cannot be null. - CPULocals::get().heap().donate_small_medium_segment( + CPULocals::get().heap().donate_segment( NonNull::new(bootstrap_segment as *mut [u8; NON_HUGE_SEGMENT_SIZE]).unwrap(), ); -- cgit v1.2.3