From d95c714c8cfdc5818b0e0f0c99cf2e5be66de202 Mon Sep 17 00:00:00 2001 From: Kimplul Date: Sun, 12 Sep 2021 21:51:10 +0300 Subject: 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. --- arch/riscv/config.h | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'arch/riscv/config.h') 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 #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 -- cgit v1.3