mirror of
https://github.com/drasko/codezero.git
synced 2026-01-16 12:53:16 +01:00
Added a memlayout.txt, revised README, reduced env size to 4kb
This commit is contained in:
99
docs/memlayout.txt
Normal file
99
docs/memlayout.txt
Normal file
@@ -0,0 +1,99 @@
|
||||
|
||||
Virtual memory layout on Codezero/ARMv5:
|
||||
========================================
|
||||
|
||||
|
||||
|
||||
0xFFFF FFFF .---------------. End of virtual memory
|
||||
| Syscall page |
|
||||
0xFFFF F000 |---------------|
|
||||
| Reserved |
|
||||
0xFFFF 1000 |---------------|
|
||||
| Vector page |
|
||||
0xFFFF 0000 |---------------|
|
||||
| Reserved |
|
||||
0xF900 0000 |---------------| UTCB area ends
|
||||
| |
|
||||
| ... |
|
||||
| --------- |
|
||||
| UTCB page |
|
||||
| --------- |
|
||||
| UTCB page |
|
||||
0xF800 0000 |---------------| UTCB area starts
|
||||
| |
|
||||
| Codezero |
|
||||
| Microkernel |
|
||||
| |
|
||||
0xF000 0000 |---------------|
|
||||
| |
|
||||
| MM0 pager |
|
||||
| |
|
||||
0xE000 0000 |---------------|
|
||||
| |
|
||||
| |
|
||||
| Reserved |
|
||||
| |
|
||||
| |
|
||||
| ... |
|
||||
0x2000 0000 |---------------| User task area ends
|
||||
| |
|
||||
| |
|
||||
| |
|
||||
| Task |
|
||||
| Address Space |
|
||||
| |
|
||||
| |
|
||||
0x1000 0000 |---------------| User task area starts
|
||||
| |
|
||||
| |
|
||||
| Reserved |
|
||||
| |
|
||||
| |
|
||||
0x0 '---------------' Start of virtual memory
|
||||
|
||||
|
||||
|
||||
|
||||
User task layout on Codezero/ARMv5:
|
||||
===================================
|
||||
|
||||
|
||||
0x2000 0000 .---------------. End of user task address space
|
||||
|4KB Environment|
|
||||
0x1FFF F000 |---------------|
|
||||
| 16KB Stack |
|
||||
| | |
|
||||
| v |
|
||||
| |
|
||||
0x1FFE F000 |---------------|
|
||||
| |
|
||||
| Memory |
|
||||
| available |
|
||||
| for mmap() |
|
||||
| |
|
||||
0x1xxx x000 |---------------|
|
||||
| BSS |
|
||||
|---------------|
|
||||
| Data |
|
||||
|---------------|
|
||||
| Text |
|
||||
0x1000 0000 '---------------' Start of user task address space
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user