mirror of
https://github.com/saymrwulf/xous-core.git
synced 2026-11-20 09:03:28 +00:00
Update memory.md
This commit is contained in:
parent
759ce9e05c
commit
040e30c87a
1 changed files with 15 additions and 0 deletions
|
|
@ -67,6 +67,21 @@ assigned to every process simply by mapping megapage 1023 (`0xffc00000`).
|
||||||
Note that the stack pointer is not necessarily fixed, and may be changed
|
Note that the stack pointer is not necessarily fixed, and may be changed
|
||||||
in a later revision.
|
in a later revision.
|
||||||
|
|
||||||
|
Other addresses can be [found in Xous](https://github.com/betrusted-io/xous-core/blob/main/kernel/src/arch/riscv/mem.rs#L10-L18):
|
||||||
|
|
||||||
|
```rust
|
||||||
|
// pub const DEFAULT_STACK_TOP: usize = 0x8000_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 const EXCEPTION_STACK_TOP: usize = 0xffff_0000;
|
||||||
|
pub const PAGE_SIZE: usize = 4096;
|
||||||
|
const PAGE_TABLE_OFFSET: usize = 0xff40_0000;
|
||||||
|
const PAGE_TABLE_ROOT_OFFSET: usize = 0xff80_0000;
|
||||||
|
```
|
||||||
|
|
||||||
## Special Physical Memory Addresses
|
## Special Physical Memory Addresses
|
||||||
|
|
||||||
| Address | Description
|
| Address | Description
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue