From 73a71a7d85ee08566c6efbc6358db63f6d750958 Mon Sep 17 00:00:00 2001 From: Jeremy Soller <jackpot51@gmail.com> Date: Sat, 17 Jun 2017 14:32:31 -0600 Subject: [PATCH] Increase size of kernel heap when live disk is loaded --- src/consts.rs | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/consts.rs b/src/consts.rs index 743bee56..149c9b45 100644 --- a/src/consts.rs +++ b/src/consts.rs @@ -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; -- GitLab