summaryrefslogtreecommitdiff
path: root/crates/kernel
diff options
context:
space:
mode:
authorNathan Ringo <nathan@remexre.com>2024-09-17 01:28:51 -0500
committerNathan Ringo <nathan@remexre.com>2024-09-17 01:28:51 -0500
commit0b319b2a9b5faec3c869da8b12151aa5734b629f (patch)
tree7b185a034c3edd4b1c066d41bf61bb01e584f786 /crates/kernel
parent49bf92a7aaf10a4777ea512303e442588f4ce2e5 (diff)
Minimally working allocator.HEADtrunk
Diffstat (limited to 'crates/kernel')
-rw-r--r--crates/kernel/src/alloc.rs2
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(),
);