RISCV64: Change VA scheme to Sv39 for real hardware support

This commit is contained in:
aarch
2026-04-18 15:45:13 +00:00
committed by Jeremy Soller
parent 80233d0d62
commit eb82e9cc88
+1 -1
View File
@@ -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 {