aboutsummaryrefslogtreecommitdiff
path: root/arch/riscv/config.h
diff options
context:
space:
mode:
authorKimplul <kimi.h.kuparinen@gmail.com>2021-09-12 21:51:10 +0300
committerKimplul <kimi.h.kuparinen@gmail.com>2021-09-12 21:51:10 +0300
commitd95c714c8cfdc5818b0e0f0c99cf2e5be66de202 (patch)
tree3b7b7a4fda733f284a4f77a9e67cc509201cfeca /arch/riscv/config.h
parent1ab464d959b9ee3d3bb6758ac0d9d33fc6c77e46 (diff)
downloadkmi-d95c714c8cfdc5818b0e0f0c99cf2e5be66de202.tar.gz
kmi-d95c714c8cfdc5818b0e0f0c99cf2e5be66de202.zip
Initial physical page manager
+ Will probably still need a fair bit of tweakind and documentation improvements, but seems to work outside of the kernel. Also no valgrind errors, which is quite promising I guess.
Diffstat (limited to 'arch/riscv/config.h')
-rw-r--r--arch/riscv/config.h7
1 files changed, 7 insertions, 0 deletions
diff --git a/arch/riscv/config.h b/arch/riscv/config.h
index 1818316..3eedb39 100644
--- a/arch/riscv/config.h
+++ b/arch/riscv/config.h
@@ -1,3 +1,10 @@
#include <apos/sizes.h>
#define PM_KERN 0x83800000
#define VM_KERN ((-1) - SZ_1G)
+
+#define MAX_ORDER 3
+#define PAGE_SHIFT 12
+#define O0_WIDTH 9
+#define O1_WIDTH 9
+#define O2_WIDTH 9
+#define O3_WIDTH 0