summaryrefslogtreecommitdiff
path: root/documentation/memory.txt
diff options
context:
space:
mode:
Diffstat (limited to 'documentation/memory.txt')
-rw-r--r--documentation/memory.txt7
1 files changed, 7 insertions, 0 deletions
diff --git a/documentation/memory.txt b/documentation/memory.txt
new file mode 100644
index 0000000..e820034
--- /dev/null
+++ b/documentation/memory.txt
@@ -0,0 +1,7 @@
+only the first 32GiB of physical memory are considered. this can be changed
+with pram_pages in paging.cpp. as for virtual memory, the top 1GiB is reserved
+for the kernel. the top 1MiB of that is reserved for the kernel stack, with an
+unmapped guard page at the top and bottom of the kernel stack.
+
+if any of these facts change, the linker script and paging code should be
+checked closely.