diff options
author | Wojtek Kosior <kwojtus@protonmail.com> | 2019-11-19 18:33:32 +0100 |
---|---|---|
committer | Wojtek Kosior <kwojtus@protonmail.com> | 2019-11-19 18:33:32 +0100 |
commit | 42fa390951fa7a35cc60d935ae3140d735ec61e1 (patch) | |
tree | a50dcc354cf042d3225b04c2b9d43c4abfdc2140 | |
parent | cadf5fee315ea37b59fa5ebafefd4ba5594c7577 (diff) | |
download | rpi-MMU-example-42fa390951fa7a35cc60d935ae3140d735ec61e1.tar.gz rpi-MMU-example-42fa390951fa7a35cc60d935ae3140d735ec61e1.zip |
minor edit
-rw-r--r-- | demo_functionality.c | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/demo_functionality.c b/demo_functionality.c index 53035b7..7bba6a6 100644 --- a/demo_functionality.c +++ b/demo_functionality.c @@ -65,21 +65,21 @@ void demo_go_unprivileged(void) short_section_descriptor_t *translation_table = (short_section_descriptor_t*) TRANSLATION_TABLE_BASE; - volatile short_section_descriptor_t *PL0_code_section = + volatile short_section_descriptor_t *PL0_section = &translation_table[PL0_SECTION_NUMBER]; volatile short_section_descriptor_t *UART_memory_section = &translation_table[((uint32_t) GPIO_BASE) >> 20]; - PL0_code_section->SECTION_BASE_ADDRESS_31_20 = + PL0_section->SECTION_BASE_ADDRESS_31_20 = UNPRIVILEGED_MEMORY_START >> 20; // make the selected section and uart section available for PL0 - PL0_code_section->ACCESS_PERMISSIONS_2 = + PL0_section->ACCESS_PERMISSIONS_2 = AP_2_0_MODEL_RW_ALL >> 2; - PL0_code_section->ACCESS_PERMISSIONS_1_0 = + PL0_section->ACCESS_PERMISSIONS_1_0 = AP_2_0_MODEL_RW_ALL & 0b011; - UART_memory_section->ACCESS_PERMISSIONS_2 = + UART_memory_section->ACCESS_PERMISSIONS_2 = AP_2_0_MODEL_RW_ALL >> 2; UART_memory_section->ACCESS_PERMISSIONS_1_0 = AP_2_0_MODEL_RW_ALL & 0b011; |