From 041369b059ebc7623a9b37a745e2209d3af136e1 Mon Sep 17 00:00:00 2001 From: bunnie Date: Sun, 11 May 2025 15:34:30 +0800 Subject: [PATCH] add missing defines to the arch target of test/mem.rs --- xous-rs/src/arch/test/mem.rs | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/xous-rs/src/arch/test/mem.rs b/xous-rs/src/arch/test/mem.rs index a81b9d2d5..b19b337a3 100644 --- a/xous-rs/src/arch/test/mem.rs +++ b/xous-rs/src/arch/test/mem.rs @@ -3,6 +3,13 @@ use crate::{Error, MemoryAddress, MemoryFlags, MemoryRange}; extern crate alloc; use alloc::alloc::{Layout, alloc, dealloc}; +pub const PAGE_SIZE: usize = 4096; +pub const MMAP_VIRT_BASE: usize = 0xb000_0000; +pub const DEFAULT_HEAP_BASE: usize = 0x2000_0000; +pub const DEFAULT_MESSAGE_BASE: usize = 0x4000_0000; +pub const DEFAULT_BASE: usize = 0x6000_0000; +pub const USER_AREA_END: usize = 0xff00_0000; + pub fn map_memory_pre( _phys: &Option, _virt: &Option,