aboutsummaryrefslogtreecommitdiff
path: root/arch/riscv/include/csr.h
diff options
context:
space:
mode:
authorKimplul <kimi.h.kuparinen@gmail.com>2021-10-11 23:18:47 +0300
committerKimplul <kimi.h.kuparinen@gmail.com>2021-10-11 23:18:47 +0300
commit7237d673904d8568a2f9c290a0247c9d1a07c5d2 (patch)
tree7deabe2dc64ddf05016eb3e3a4f22a7e252b5c35 /arch/riscv/include/csr.h
parentebd34a9ab3809167e16e4107c8e72d1d81faff9c (diff)
downloadkmi-7237d673904d8568a2f9c290a0247c9d1a07c5d2.tar.gz
kmi-7237d673904d8568a2f9c290a0247c9d1a07c5d2.zip
Start designing vmem framework
Diffstat (limited to 'arch/riscv/include/csr.h')
-rw-r--r--arch/riscv/include/csr.h7
1 files changed, 5 insertions, 2 deletions
diff --git a/arch/riscv/include/csr.h b/arch/riscv/include/csr.h
index 5da0882..ab25bdd 100644
--- a/arch/riscv/include/csr.h
+++ b/arch/riscv/include/csr.h
@@ -1,8 +1,11 @@
#ifndef APOS_CSR_H
#define APOS_CSR_H
-#define SATP_MODE_39 0x8000000000000000
-#define SATP_MODE_48 0x9000000000000000
+#include <apos/utils.h>
+
+#define SATP_MODE_Sv32 0x80000000
+#define SATP_MODE_Sv39 0x8000000000000000
+#define SATP_MODE_Sv48 0x9000000000000000
#define CSR_SATP 0x180