@@ -211,7 +211,7 @@ NuttX defines the whole list here: [arm64_mmu.h](https://github.com/apache/nuttx
211211
212212_What if we read from 0x4000_0000 AFTER enabling MMU?_
213213
214- We'll see [_0xAA AA AA AA..._](TODO). Yep the MMU can remap memory in fun interesting ways!
214+ TODO: We'll see [_0xAA AA AA AA..._](TODO). Yep the MMU can remap memory in fun interesting ways!
215215
216216_Why map 0x0000_0000 to itself?_
217217
@@ -252,31 +252,7 @@ _Why are we doing Stage 1? Not Stage 2?_
252252
253253![ TODO] ( https://lupyuen.org/images/unicorn3-stage.png )
254254
255- TODO: PTE_BLOCK_DESC_AP_USER=1
256-
257- ``` text
258- [7] AP[2] Stage 1 Indirect permissions are disabled.
259- See Stage 1 data accesses using Direct permissions.
260-
261- [6] RES1 Stage 1 Indirect permissions are disabled and the translation regime supports a single privilege
262- level.
263- AP[1] Stage 1 Indirect permissions are disabled and the translation regime supports two privilege
264- levels.
265- See Stage 1 data accesses using Direct permissions.
266- PIIndex[0] Stage 1 Indirect permissions are enabled.
267- See Stage 1 Indirect permissions.
268- ```
269-
270- TODO: AP[ 2:1]
271-
272- ``` text
273- AP[2:1] Permissions
274- 00 PrivRead, PrivWrite
275- 01 PrivRead, PrivWrite, UnprivRead, UnprivWrite
276- 10 PrivRead
277- 11 PrivRead, UnprivRead
278- RPSZJJ
279- ```
255+ TODO
280256
281257![ TODO] ( https://lupyuen.org/images/unicorn3-table.png )
282258
@@ -758,6 +734,34 @@ TODO
758734
759735# TODO
760736
737+ TODO: PTE_BLOCK_DESC_AP_USER=1
738+
739+ ``` text
740+ [7] AP[2] Stage 1 Indirect permissions are disabled.
741+ See Stage 1 data accesses using Direct permissions.
742+
743+ [6] RES1 Stage 1 Indirect permissions are disabled and the translation regime supports a single privilege
744+ level.
745+ AP[1] Stage 1 Indirect permissions are disabled and the translation regime supports two privilege
746+ levels.
747+ See Stage 1 data accesses using Direct permissions.
748+ PIIndex[0] Stage 1 Indirect permissions are enabled.
749+ See Stage 1 Indirect permissions.
750+ ```
751+
752+ TODO: AP[ 2:1]
753+
754+ ``` text
755+ AP[2:1] Permissions
756+ 00 PrivRead, PrivWrite
757+ 01 PrivRead, PrivWrite, UnprivRead, UnprivWrite
758+ 10 PrivRead
759+ 11 PrivRead, UnprivRead
760+ RPSZJJ
761+ ```
762+
763+ TODO
764+
761765``` rust
762766// Read data from physical address
763767ldr X0 , = 0x40000000
@@ -787,7 +791,7 @@ ldr X0, =0x80000000
787791ldr X2 , [X0 ]
788792```
789793
790- # TODO
794+ TODO
791795
792796``` bash
793797# # Level 1 Page Table with 4 Page Table Entries
0 commit comments