mirror of
https://github.com/saymrwulf/xous-core.git
synced 2026-11-16 08:38:26 +00:00
add missing defines to the arch target of test/mem.rs
This commit is contained in:
parent
c0b6965adc
commit
041369b059
1 changed files with 7 additions and 0 deletions
|
|
@ -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>,
|
||||
|
|
|
|||
Loading…
Reference in a new issue