diff options
Diffstat (limited to 'arch/riscv64')
| -rw-r--r-- | arch/riscv64/config.h | 2 | ||||
| -rw-r--r-- | arch/riscv64/kernel/pmem.c | 2 |
2 files changed, 2 insertions, 2 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. */ diff --git a/arch/riscv64/kernel/pmem.c b/arch/riscv64/kernel/pmem.c index 945cb38..56769c6 100644 --- a/arch/riscv64/kernel/pmem.c +++ b/arch/riscv64/kernel/pmem.c @@ -16,7 +16,7 @@ stat_t stat_pmem_conf(void *fdt, size_t *max_order, size_t *base_bits, size_t nbits = 9; -#if defined(riscv64) +#if __riscv_xlen == 64 *max_order = 2; nbits = 9; #else |
