Using the old memory layout for now.
Bug: 223166344
Test: Ran --unprotected-vm-with-firmware with patched crosvm.
Change-Id: I91d289828800e5e7eefffc00c964713153cc9ad5
This means we can map the text and rodata sections read-only, and enable
WXN. The data section must be copied from its (now readonly) load
address to the writable block.
Bug: 223166344
Test: Ran unprotected VM under crosvm.
Change-Id: I9105f200c8bd937f6e3a504fed7d0fb5e38ff366
This pagetable is built into the binary, and maps device memory and
enough RAM for the DT and image. It can later be replaced by a proper
pagetable built in Rust.
Using a hardcoded pagetable means we avoid making any memory access
before enabling it, which avoids a bunch of cache issues.
Bug: 223166344
Test: Ran unprotected VM under crosvm.
Change-Id: I567e377ab93881aa357428f750b11be6b3aad034