aboutsummaryrefslogtreecommitdiff
path: root/include/arch/mem.h
diff options
context:
space:
mode:
Diffstat (limited to 'include/arch/mem.h')
-rw-r--r--include/arch/mem.h21
1 files changed, 21 insertions, 0 deletions
diff --git a/include/arch/mem.h b/include/arch/mem.h
new file mode 100644
index 0000000..a70637c
--- /dev/null
+++ b/include/arch/mem.h
@@ -0,0 +1,21 @@
+/* SPDX-License-Identifier: copyleft-next-0.3.1 */
+/* Copyright 2024, Kim Kuparinen < kimi.h.kuparinen@gmail.com > */
+
+#ifndef KMI_ARCH_MEM_H
+#define KMI_ARCH_MEM_H
+
+/**
+ * @file mem.h
+ *
+ * Arch-specific stuff generic to all memory.
+ */
+
+#if defined(__riscv)
+# if __riscv_xlen == 64
+#include "../../arch/riscv64/include/pmem.h"
+# else
+#include "../../arch/riscv32/include/pmem.h"
+# endif
+#endif
+
+#endif /* KMI_ARCH_MEM_H */