Increase size of kernel heap when live disk is loaded

This commit is contained in:
Jeremy Soller
2017-06-17 14:32:31 -06:00
parent 85c02365c9
commit 73a71a7d85

View File

@@ -15,7 +15,10 @@
/// Offset to kernel heap
pub const KERNEL_HEAP_OFFSET: usize = KERNEL_OFFSET + PML4_SIZE/2;
/// Size of kernel heap
pub const KERNEL_HEAP_SIZE: usize = 256 * 1024 * 1024; // 256 MB
#[cfg(not(feature = "live"))]
pub const KERNEL_HEAP_SIZE: usize = 128 * 1024 * 1024; // 128 MB
#[cfg(feature = "live")]
pub const KERNEL_HEAP_SIZE: usize = 640 * 1024 * 1024; // 640 MB - 128 default + 512 for the live disk
/// Offset to kernel percpu variables
//TODO: Use 64-bit fs offset to enable this pub const KERNEL_PERCPU_OFFSET: usize = KERNEL_HEAP_OFFSET - PML4_SIZE;