mirror of
https://github.com/phil-opp/blog_os.git
synced 2025-12-16 14:27:49 +00:00
Use proper size for heap init (#376)
This commit is contained in:
committed by
Philipp Oppermann
parent
5e937e6e20
commit
f7868a1bd8
@@ -52,7 +52,7 @@ pub extern "C" fn rust_main(multiboot_information_address: usize) {
|
|||||||
let mut memory_controller = memory::init(boot_info);
|
let mut memory_controller = memory::init(boot_info);
|
||||||
|
|
||||||
unsafe {
|
unsafe {
|
||||||
HEAP_ALLOCATOR.lock().init(HEAP_START, HEAP_START + HEAP_SIZE);
|
HEAP_ALLOCATOR.lock().init(HEAP_START, HEAP_SIZE);
|
||||||
}
|
}
|
||||||
|
|
||||||
// initialize our IDT
|
// initialize our IDT
|
||||||
|
|||||||
Reference in New Issue
Block a user