aboutsummaryrefslogtreecommitdiff
path: root/memory.h
diff options
context:
space:
mode:
authorWojtek Kosior <kwojtus@protonmail.com>2019-12-31 13:50:14 +0100
committerWojtek Kosior <kwojtus@protonmail.com>2019-12-31 13:50:14 +0100
commit7dcea5fdafe66d8bcf1eeacbaf3f3f3b1c258dfc (patch)
treeb56d111955ab45215caf11bd3b2ba6560d14c171 /memory.h
parent3387b288a53422131f22f1fc96168a128edc9902 (diff)
downloadrpi-MMU-example-7dcea5fdafe66d8bcf1eeacbaf3f3f3b1c258dfc.tar.gz
rpi-MMU-example-7dcea5fdafe66d8bcf1eeacbaf3f3f3b1c258dfc.zip
implement basic memory section allocation for processes
Diffstat (limited to 'memory.h')
-rw-r--r--memory.h6
1 files changed, 6 insertions, 0 deletions
diff --git a/memory.h b/memory.h
index 7de556d..2ab5485 100644
--- a/memory.h
+++ b/memory.h
@@ -25,6 +25,8 @@ extern char __end;
extern char __start;
extern char _translation_table_start;
extern char _translation_table_end;
+extern char _sections_list_start;
+extern char _sections_list_end;
extern char _stack_start;
extern char _stack_top;
extern char _unprivileged_memory_start;
@@ -37,6 +39,10 @@ extern char _unprivileged_memory_end;
#define TRANSLATION_TABLE_BASE ((size_t) &_translation_table_start)
#define TRANSLATION_TABLE_END ((size_t) &_translation_table_end)
+// another 32KB after the translation table are used for sections list
+#define SECTIONS_LIST_START ((size_t) &_sections_list_start)
+#define SECTIONS_LIST_END ((size_t) &_sections_list_end)
+
// first section after the translation table is left unused;
// the next section is used as the stack
#define STACK_START ((size_t) &_stack_start)