A rewrite of the bump allocator to conform to the new API (#361)

This commit is contained in:
johanmon
2017-10-24 08:31:08 +02:00
committed by Philipp Oppermann
parent f499b6378c
commit 30fcae9dce
4 changed files with 101 additions and 71 deletions

View File

@@ -39,6 +39,11 @@ mod memory;
mod interrupts;
pub const HEAP_START: usize = 0o_000_001_000_000_0000;
pub const HEAP_SIZE: usize = 100 * 1024; // 100 KiB
#[no_mangle]
pub extern "C" fn rust_main(multiboot_information_address: usize) {
// ATTENTION: we have a very small stack and no guard page