diff options
author | Nathan Ringo <nathan@remexre.com> | 2024-09-17 01:28:51 -0500 |
---|---|---|
committer | Nathan Ringo <nathan@remexre.com> | 2024-09-17 01:28:51 -0500 |
commit | 0b319b2a9b5faec3c869da8b12151aa5734b629f (patch) | |
tree | 7b185a034c3edd4b1c066d41bf61bb01e584f786 /crates/kernel/src/alloc.rs | |
parent | 49bf92a7aaf10a4777ea512303e442588f4ce2e5 (diff) |
Diffstat (limited to 'crates/kernel/src/alloc.rs')
-rw-r--r-- | crates/kernel/src/alloc.rs | 2 |
1 files changed, 1 insertions, 1 deletions
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(), ); |