aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--demo_functionality.c10
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;