Use linked_list_allocator crate instead of dummy allocator

This commit is contained in:
Philipp Oppermann
2019-06-26 15:05:57 +02:00
parent 06fc63028a
commit d7484ab48b
4 changed files with 17 additions and 1 deletions

View File

@@ -9,6 +9,7 @@
extern crate alloc;
use core::panic::PanicInfo;
use linked_list_allocator::LockedHeap;
pub mod allocator;
pub mod gdt;
@@ -18,7 +19,7 @@ pub mod serial;
pub mod vga_buffer;
#[global_allocator]
static ALLOCATOR: allocator::Dummy = allocator::Dummy;
static ALLOCATOR: LockedHeap = LockedHeap::empty();
pub fn init() {
gdt::init();