aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorWojtek Kosior <kwojtus@protonmail.com>2019-11-19 18:33:00 +0100
committerWojtek Kosior <kwojtus@protonmail.com>2019-11-19 18:33:00 +0100
commitcadf5fee315ea37b59fa5ebafefd4ba5594c7577 (patch)
tree7c3cfe8cfcb09603ffe61b6a2ad6585c4dbb21f6
parentdc7f7763b98f42d04ef2b6e6330a8bb852c9cce8 (diff)
downloadrpi-MMU-example-cadf5fee315ea37b59fa5ebafefd4ba5594c7577.tar.gz
rpi-MMU-example-cadf5fee315ea37b59fa5ebafefd4ba5594c7577.zip
bugfix - properly compute section address
-rw-r--r--memory.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/memory.h b/memory.h
index 2d0f6f4..1472a8b 100644
--- a/memory.h
+++ b/memory.h
@@ -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"