From ebbc6d55d26b90a9ac0eceb8db6ba682b352553c Mon Sep 17 00:00:00 2001 From: Philipp Oppermann Date: Mon, 17 Jun 2019 17:49:21 +0200 Subject: [PATCH] Use dummy allocator as global allocator --- src/lib.rs | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/lib.rs b/src/lib.rs index 320a3ca4..94ee9290 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -16,6 +16,9 @@ pub mod memory; pub mod serial; pub mod vga_buffer; +#[global_allocator] +static ALLOCATOR: allocator::Dummy = allocator::Dummy; + pub fn init() { gdt::init(); interrupts::init_idt();