diff options
author | Wojtek Kosior <kwojtus@protonmail.com> | 2019-11-19 18:33:00 +0100 |
---|---|---|
committer | Wojtek Kosior <kwojtus@protonmail.com> | 2019-11-19 18:33:00 +0100 |
commit | cadf5fee315ea37b59fa5ebafefd4ba5594c7577 (patch) | |
tree | 7c3cfe8cfcb09603ffe61b6a2ad6585c4dbb21f6 | |
parent | dc7f7763b98f42d04ef2b6e6330a8bb852c9cce8 (diff) | |
download | rpi-MMU-example-cadf5fee315ea37b59fa5ebafefd4ba5594c7577.tar.gz rpi-MMU-example-cadf5fee315ea37b59fa5ebafefd4ba5594c7577.zip |
bugfix - properly compute section address
-rw-r--r-- | memory.h | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -23,8 +23,8 @@ extern char __start; #define PRIVILEGED_MEMORY_END TRANSLATION_TABLE_END #define UNPRIVILEGED_MEMORY_START \ - (((PRIVILEGED_MEMORY_END - (uint32_t) 1) & ~((uint32_t) 0x3fff)) \ - + (uint32_t) 0x4000) + (((PRIVILEGED_MEMORY_END - (uint32_t) 1) & ~((uint32_t) 0xfffff)) \ + + (uint32_t) 0x100000) #define PL0_SECTION_NUMBER ((uint32_t) 0b101010101010) #define PL0_SECTION_NUMBER_STR "0b101010101010" |