atlas
aien-dev/atlas
Brought by drakestapleton
atlas / atlas.memory-map
| 1 | # ATLAS MACHINE MEMORY MAP |
| 2 | ## Target Profile: CONTRACT-QEMU-VIRT-AARCH64-M1 (Disjoint Stack/Descriptor Edition) |
| 3 | *Formerly designated Alpha in early bootstrap drafting.* |
| 4 | |
| 5 | | Address Window | Size | Classification | Alignment | Access Rights | Purpose | |
| 6 | | :--- | :--- | :--- | :--- | :--- | :--- | |
| 7 | | `0x00000000 - 0x000005C7` | 1480 B | Flash / Code | 64-byte | Read / Execute | `atlas.bin` canonical root executable image | |
| 8 | | `0x000005C8 - 0x03FFFFFF` | ~64 MiB | Flash / Unused | 4 KiB | Read Only | Reserved Flash address space | |
| 9 | | `0x09000000 - 0x09000FFF` | 4 KiB | MMIO Peripheral | 4-byte | Read / Write | ARM PrimeCell PL011 UART diagnostic output | |
| 10 | | `0x40000000 - 0x400FFFFF` | 1 MiB | DRAM Reserved | 64 KiB | Unused by Atlas | QEMU Virt Device Tree Blob (DTB) staging window | |
| 11 | | `0x40100000 - 0x401EFFFF` | 960 KiB | DRAM Unused | 4 KiB | Unused by Atlas | Free memory reserved for Physics | |
| 12 | | `0x401F0000 - 0x401FC000` | 48 KiB | DRAM Stack Space | 16-byte | Read / Write | Downward-growing stack window (`SP_EL1` / `SP_EL2`) | |
| 13 | | `0x401FC000` | Anchor | DRAM Stack Top | 16-byte | Stack Pointer | Initial Stack Pointer (`SP <= 0x401FC000`) | |
| 14 | | `0x401FC000 - 0x401FDFFF` | 8 KiB | DRAM Guard Gap | 4 KiB | NO ACCESS | Unmapped guard window guaranteeing disjointness | |
| 15 | | `0x401FE000 - 0x401FE03F` | 64 B | DRAM Descriptor | 64-byte | Read / Write | Machine Boot Descriptor generated by Atlas | |
| 16 | | `0x401FE080 - 0x401FE09F` | 32 B | DRAM Scratchpad | 32-byte | Read / Write | SHA-256 Digest Output Buffer | |
| 17 | | `0x401FE100 - 0x401FE17F` | 128 B | DRAM Scratchpad | 64-byte | Read / Write | SHA-256 Padding & Block Scratch Buffer | |
| 18 | | `0x40200000 - 0x402000FF` | 256 B | DRAM Payload | 64-byte | Read / Execute | `PHYSICS-0` initial machine authority payload image | |
| 19 | | `0x40200100 - 0x47FFFFFF` | ~126 MiB | DRAM Free | 4 KiB | Unused by Atlas | System RAM available for Physics kernel allocation | |
| 20 | |
| 21 | ### Formal Disjoint Separation Proof: |
| 22 | $$\text{Stack Allocation Range} = [0x401F0000, 0x401FC000)$$ |
| 23 | $$\text{Descriptor Allocation Range} = [0x401FE000, 0x401FE040)$$ |
| 24 | $$\text{Gap} = 0x401FE000 - 0x401FC000 = 8,192\text{ bytes (8 KiB positive distance)}$$ |
| 25 | $$\text{Stack Growth Direction} = \text{Strictly Downward (decreasing memory addresses)}$$ |
| 26 | $$\text{Stack Allocation Range} \cap \text{Descriptor Allocation Range} = \emptyset$$ |
| 27 | *Downward stack pushes decrease the stack pointer toward `0x401F0000`, moving strictly away from `0x401FE000`. Overwriting the boot descriptor via stack growth is physically and mathematically impossible.* |