diff options
author | Andrew Waterman <andrew@sifive.com> | 2016-12-06 15:49:59 -0800 |
---|---|---|
committer | Andrew Waterman <andrew@sifive.com> | 2016-12-06 15:49:59 -0800 |
commit | f6b2274af4a91763ecdb94600d7d54d5f7f262b5 (patch) | |
tree | 0f4ad8f1df69ea97bb2626573c80854a1838cf53 /pk/mmap.c | |
parent | e5ed1d115c178b87807a9d7c966dbaa2b3d3a92e (diff) | |
download | pk-f6b2274af4a91763ecdb94600d7d54d5f7f262b5.zip pk-f6b2274af4a91763ecdb94600d7d54d5f7f262b5.tar.gz pk-f6b2274af4a91763ecdb94600d7d54d5f7f262b5.tar.bz2 |
avoid non-standard predefined macros
Diffstat (limited to 'pk/mmap.c')
-rw-r--r-- | pk/mmap.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -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 |