add missing defines to the arch target of test/mem.rs

This commit is contained in:
bunnie 2025-05-11 15:34:30 +08:00
parent c0b6965adc
commit 041369b059

View file

@ -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<MemoryAddress>,
_virt: &Option<MemoryAddress>,