diff --git a/bootstrap/src/riscv64.rs b/bootstrap/src/riscv64.rs index 18a582a626..6bec4c2ec6 100644 --- a/bootstrap/src/riscv64.rs +++ b/bootstrap/src/riscv64.rs @@ -2,7 +2,7 @@ use core::mem; use syscall::{data::Map, flag::MapFlags, number::SYS_FMAP}; const STACK_SIZE: usize = 64 * 1024; // 64 KiB -pub const USERMODE_END: usize = 1 << 47; // Assuming Sv48; it should work with Sv57 also +pub const USERMODE_END: usize = 1 << 38; // Assuming Sv39 pub const STACK_START: usize = USERMODE_END - syscall::KERNEL_METADATA_SIZE - STACK_SIZE; static MAP: Map = Map {