Update memory.md

This commit is contained in:
bunnie 2021-08-27 21:37:09 +08:00 committed by GitHub
parent 759ce9e05c
commit 040e30c87a
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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
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
| Address | Description