Browse Source

set up a static ::alloca::Allocator as the #[global_allocator]

master
3moon 8 years ago
parent
commit
cbe7669dc8
1 changed files with 4 additions and 0 deletions
  1. +4
    -0
      src/lib.rs

+ 4
- 0
src/lib.rs View File

@ -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) {


Loading…
Cancel
Save