aboutsummaryrefslogtreecommitdiff
path: root/arch/riscv/include/pages.h
diff options
context:
space:
mode:
authorKimplul <kimi.h.kuparinen@gmail.com>2021-09-25 14:56:43 +0300
committerKimplul <kimi.h.kuparinen@gmail.com>2021-09-25 14:56:43 +0300
commit2d173beb3392aff35c8a33f4ac001bf63bb9adc6 (patch)
tree3b9dc8dc03276f5ead11f2e3613536c7f11c6b18 /arch/riscv/include/pages.h
parent13fe461374c0716404e2ee7726781b9cd12dbaa7 (diff)
downloadkmi-2d173beb3392aff35c8a33f4ac001bf63bb9adc6.tar.gz
kmi-2d173beb3392aff35c8a33f4ac001bf63bb9adc6.zip
Used memory regions now marked
+ I don't fully trust my memory management system yet, so should probably check the memory regions it gives.
Diffstat (limited to 'arch/riscv/include/pages.h')
-rw-r--r--arch/riscv/include/pages.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/arch/riscv/include/pages.h b/arch/riscv/include/pages.h
index 1533f7b..82ce6c7 100644
--- a/arch/riscv/include/pages.h
+++ b/arch/riscv/include/pages.h
@@ -12,4 +12,9 @@ typedef uint64_t pm_t;
#define MM_GPAGE MM_O2
#define MM_TPAGE MM_O3
+#define MM_KPAGE_SIZE SZ_4K
+#define MM_MPAGE_SIZE SZ_2M
+#define MM_GPAGE_SIZE SZ_1G
+#define MM_TPAGE_SIZE SZ_512G
+
#endif /* APOS_RISCV_PAGES_H */