mirror of
https://github.com/phil-opp/blog_os.git
synced 2025-12-16 22:37:49 +00:00
Use new hole_list_allocator instead of bump_allocator
This commit is contained in:
@@ -46,8 +46,8 @@ pub fn init(boot_info: &BootInformation) {
|
||||
let mut active_table = paging::remap_the_kernel(&mut frame_allocator,
|
||||
boot_info);
|
||||
|
||||
use self::paging::{Page, WRITABLE};
|
||||
use bump_allocator::{HEAP_START, HEAP_SIZE};
|
||||
use self::paging::Page;
|
||||
use hole_list_allocator::{HEAP_START, HEAP_SIZE};
|
||||
|
||||
let heap_start_page = Page::containing_address(HEAP_START);
|
||||
let heap_end_page = Page::containing_address(HEAP_START + HEAP_SIZE-1);
|
||||
|
||||
Reference in New Issue
Block a user