From eb82e9cc8803fded4eceb66828b640f08d04da2e Mon Sep 17 00:00:00 2001 From: aarch <126242-aarch@users.noreply.gitlab.redox-os.org> Date: Sat, 18 Apr 2026 15:45:13 +0000 Subject: [PATCH] RISCV64: Change VA scheme to Sv39 for real hardware support --- bootstrap/src/riscv64.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 {