mirror of
https://github.com/phil-opp/blog_os.git
synced 2025-12-17 06:47:49 +00:00
A rewrite of the bump allocator to conform to the new API (#361)
This commit is contained in:
committed by
Philipp Oppermann
parent
f499b6378c
commit
30fcae9dce
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user