From 2941066c3d314fe22d5c35f3250d872b7a42b1df Mon Sep 17 00:00:00 2001 From: Sean Cross Date: Fri, 29 Dec 2023 18:33:40 +0800 Subject: [PATCH] loader: don't reserve the "susres" page The "susres" page should be owned by the "susres" server and not the kernel. Avoid mapping this page to the kernel to prevent it from getting double-mapped. Signed-off-by: Sean Cross --- loader/src/consts.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/loader/src/consts.rs b/loader/src/consts.rs index 847241af6..f96e46244 100644 --- a/loader/src/consts.rs +++ b/loader/src/consts.rs @@ -13,4 +13,4 @@ pub const KERNEL_STACK_TOP: usize = 0xfff8_0000; pub const KERNEL_LOAD_OFFSET: usize = 0xffd0_0000; pub const KERNEL_STACK_PAGE_COUNT: usize = 1; pub const KERNEL_ARGUMENT_OFFSET: usize = 0xffc0_0000; -pub const GUARD_MEMORY_BYTES: usize = 2 * crate::PAGE_SIZE; +pub const GUARD_MEMORY_BYTES: usize = 3 * crate::PAGE_SIZE;