aboutsummaryrefslogtreecommitdiff
path: root/arch/riscv64/include
diff options
context:
space:
mode:
authorKimplul <kimi.h.kuparinen@gmail.com>2022-01-07 16:32:05 +0200
committerKimplul <kimi.h.kuparinen@gmail.com>2022-01-07 16:32:05 +0200
commitbe78fcb0acc665d4db8edb9cda53f6863d27dd85 (patch)
treee9e33e9e48983f630098eedd3d931edbe86e4410 /arch/riscv64/include
parent9cc125fb3cfdc2c8ae7153b5ae0fe705980835fb (diff)
downloadkmi-be78fcb0acc665d4db8edb9cda53f6863d27dd85.tar.gz
kmi-be78fcb0acc665d4db8edb9cda53f6863d27dd85.zip
Improved header dependency tree
Diffstat (limited to 'arch/riscv64/include')
-rw-r--r--arch/riscv64/include/cpu.h1
-rw-r--r--arch/riscv64/include/pages.h4
-rw-r--r--arch/riscv64/include/types.h9
-rw-r--r--arch/riscv64/include/vmem.h1
4 files changed, 10 insertions, 5 deletions
diff --git a/arch/riscv64/include/cpu.h b/arch/riscv64/include/cpu.h
new file mode 100644
index 0000000..40a8c17
--- /dev/null
+++ b/arch/riscv64/include/cpu.h
@@ -0,0 +1 @@
+/* empty */
diff --git a/arch/riscv64/include/pages.h b/arch/riscv64/include/pages.h
index 362499a..643d3b4 100644
--- a/arch/riscv64/include/pages.h
+++ b/arch/riscv64/include/pages.h
@@ -1,8 +1,6 @@
#ifndef APOS_RISCV_PAGES_H
#define APOS_RISCV_PAGES_H
-#include <apos/types.h>
-
#define MM_KPAGE MM_O0
#define MM_MPAGE MM_O1
#define MM_GPAGE MM_O2
@@ -13,6 +11,4 @@
#define MM_GPAGE_SIZE SZ_1G
#define MM_TPAGE_SIZE SZ_512G
-typedef uint64_t pm_t;
-
#endif /* APOS_RISCV_PAGES_H */
diff --git a/arch/riscv64/include/types.h b/arch/riscv64/include/types.h
new file mode 100644
index 0000000..3e1c08b
--- /dev/null
+++ b/arch/riscv64/include/types.h
@@ -0,0 +1,9 @@
+#ifndef APOS_RISCV_TYPES_H
+#define APOS_RISCV_TYPES_H
+
+#include <apos/types.h>
+
+typedef size_t vm_t;
+typedef size_t pm_t;
+
+#endif /* APOS_RISCV_TYPES_H */
diff --git a/arch/riscv64/include/vmem.h b/arch/riscv64/include/vmem.h
index 228b24b..115f2b0 100644
--- a/arch/riscv64/include/vmem.h
+++ b/arch/riscv64/include/vmem.h
@@ -19,7 +19,6 @@ enum mm_mode {
Sv32,
};
-typedef size_t vm_t;
struct __packed vm_branch {
struct vm_branch *leaf[512];
};