aboutsummaryrefslogtreecommitdiff
path: root/memory.h
diff options
context:
space:
mode:
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)