diff --git a/src/lib.rs b/src/lib.rs index 789326d..1b83103 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -37,6 +37,10 @@ use arch::x86_64; use arch::x86_64::device::vga_console; use arch::x86_64::memory; use arch::x86_64::memory::FrameAllocator; +use alloca::Allocator; + +#[global_allocator] +static GLOBAL_ALLOC: Allocator = Allocator; #[no_mangle] pub extern fn kernel_main(multiboot_info_pointer: usize) {