From 42fa390951fa7a35cc60d935ae3140d735ec61e1 Mon Sep 17 00:00:00 2001 From: Wojtek Kosior Date: Tue, 19 Nov 2019 18:33:32 +0100 Subject: minor edit --- demo_functionality.c | 10 +++++----- 1 file 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; -- cgit v1.2.3