aboutsummaryrefslogtreecommitdiff
path: root/pk/mmap.c
diff options
context:
space:
mode:
Diffstat (limited to 'pk/mmap.c')
-rw-r--r--pk/mmap.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/pk/mmap.c b/pk/mmap.c
index 9ef3a57..9e9be57 100644
--- a/pk/mmap.c
+++ b/pk/mmap.c
@@ -385,7 +385,7 @@ void populate_mapping(const void* start, size_t size, int prot)
uintptr_t pk_vm_init()
{
-#ifdef __riscv32
+#if __riscv_xlen == 32
// We can't support more than 2 GiB of memory in RV32
mem_size = MIN(mem_size, 1U << 31);
#endif