diff options
author | Wojtek Kosior <kwojtus@protonmail.com> | 2019-12-31 17:36:50 +0100 |
---|---|---|
committer | Wojtek Kosior <kwojtus@protonmail.com> | 2019-12-31 17:36:50 +0100 |
commit | 030cc96003d4518463b40f20d4194e51b1745c86 (patch) | |
tree | be5b70d67c35e9328f450bde48f335536052c1ce /memory.h | |
parent | b77ef684b07bcd91c168b15f71611786dd5a3377 (diff) | |
download | rpi-MMU-example-030cc96003d4518463b40f20d4194e51b1745c86.tar.gz rpi-MMU-example-030cc96003d4518463b40f20d4194e51b1745c86.zip |
don't statically define the unprivileged section (we're going to have many dynamically-claimed unprivileged sections)
Diffstat (limited to 'memory.h')
-rw-r--r-- | memory.h | 7 |
1 files changed, 1 insertions, 6 deletions
@@ -29,8 +29,6 @@ extern char _sections_list_start; extern char _sections_list_end; extern char _stack_start; extern char _stack_top; -extern char _unprivileged_memory_start; -extern char _unprivileged_memory_end; #define KERNEL_START ((size_t) &__start) // this is 0x0 #define KERNEL_END ((size_t) &__end) @@ -50,11 +48,8 @@ extern char _unprivileged_memory_end; #define PRIVILEGED_MEMORY_END STACK_END -#define UNPRIVILEGED_MEMORY_START \ - ((size_t) &_unprivileged_memory_start) // equal to STACK_END -#define UNPRIVILEGED_MEMORY_END \ - ((size_t) &_unprivileged_memory_end) +// the following describes the virtual section for our PL0 programs #define PL0_SECTION_NUMBER ((size_t) 0xaaa) #define VIRTUAL_PL0_MEMORY_START (PL0_SECTION_NUMBER << 20) |