aboutsummaryrefslogtreecommitdiff
path: root/arch/riscv64/config.h
diff options
context:
space:
mode:
authorKimplul <kimi.h.kuparinen@gmail.com>2024-07-06 19:31:13 +0300
committerKimplul <kimi.h.kuparinen@gmail.com>2024-07-06 19:31:13 +0300
commitf810f1583725b84d3538adfe2aab6dea00f5ae87 (patch)
tree0a9c16d871a473927b311f0cc2706b5056ebd122 /arch/riscv64/config.h
parente2f3d7730d06f33cb468081549b8ff3a11d83d45 (diff)
downloadkmi-f810f1583725b84d3538adfe2aab6dea00f5ae87.tar.gz
kmi-f810f1583725b84d3538adfe2aab6dea00f5ae87.zip
prefer __riscv_xlen over riscv64
Diffstat (limited to 'arch/riscv64/config.h')
-rw-r--r--arch/riscv64/config.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/arch/riscv64/config.h b/arch/riscv64/config.h
index 765aa6b..aefcc8f 100644
--- a/arch/riscv64/config.h
+++ b/arch/riscv64/config.h
@@ -45,7 +45,7 @@
/** Top of virtual memory stack. */
#define VM_STACK_TOP (VM_STACK_BASE + VM_STACK_SIZE)
-#if defined(riscv64)
+#if __riscv_xlen == 64
/* 64bit */
/** Direct map offset. */