Skip to content

Commit

Permalink
1 mb heap
Browse files Browse the repository at this point in the history
  • Loading branch information
svelterust committed Jan 29, 2024
1 parent 7566b0b commit d88eaf2
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions os/src/allocator.rs
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,9 @@ use x86_64::{
};
use linked_list_allocator::LockedHeap;

pub const HEAP_START: usize = 0x_4444_4444_0000;
pub const HEAP_SIZE: usize = 1000 * 1024; // 1 MiB

#[global_allocator]
static ALLOCATOR: LockedHeap = LockedHeap::empty();

Expand Down Expand Up @@ -38,6 +41,3 @@ pub fn init_heap(

Ok(())
}

pub const HEAP_START: usize = 0x_4444_4444_0000;
pub const HEAP_SIZE: usize = 100 * 1024; // 100 KiB

0 comments on commit d88eaf2

Please sign in to comment.