aboutsummaryrefslogtreecommitdiff
path: root/arch/riscv/include/pages.h
diff options
context:
space:
mode:
authorKimplul <kimi.h.kuparinen@gmail.com>2021-10-01 20:36:15 +0300
committerKimplul <kimi.h.kuparinen@gmail.com>2021-10-01 20:36:15 +0300
commitb30ee14270a44e48167934b9b3923b4280bdc855 (patch)
treefe900fd442e834f857927e9094ce7cbdda59b9fd /arch/riscv/include/pages.h
parent2d173beb3392aff35c8a33f4ac001bf63bb9adc6 (diff)
downloadkmi-b30ee14270a44e48167934b9b3923b4280bdc855.tar.gz
kmi-b30ee14270a44e48167934b9b3923b4280bdc855.zip
First jump to virtual memory!
+ Lots of bughunting to do, probably lots of off-by-one and so on errors, and I make a lot of naive and possibly dangerous assumptions. But cool start nonetheless. Should also come up with some method of exchanging data between the init and actual kernel, probably some struct of some sort. TODO
Diffstat (limited to 'arch/riscv/include/pages.h')
-rw-r--r--arch/riscv/include/pages.h6
1 files changed, 2 insertions, 4 deletions
diff --git a/arch/riscv/include/pages.h b/arch/riscv/include/pages.h
index 82ce6c7..8ca396a 100644
--- a/arch/riscv/include/pages.h
+++ b/arch/riscv/include/pages.h
@@ -2,10 +2,6 @@
#define APOS_RISCV_PAGES_H
#include <apos/types.h>
-#include <apos/pmem.h>
-
-/* assume riscv64 for now */
-typedef uint64_t pm_t;
#define MM_KPAGE MM_O0
#define MM_MPAGE MM_O1
@@ -17,4 +13,6 @@ typedef uint64_t pm_t;
#define MM_GPAGE_SIZE SZ_1G
#define MM_TPAGE_SIZE SZ_512G
+typedef uint64_t paddr_t;
+
#endif /* APOS_RISCV_PAGES_H */