Commit bc3d5c0
committed
Limit Linux RISC-V address bits
Linux RISC-V systems may run with an Sv39 user address space. The generic AAL default reports 48 address bits for 64-bit targets, which makes the default pagemap cover a much larger range than the process can reserve on those systems.
On an Sv39 Linux host, allocator initialisation tried to reserve a 256 GiB pagemap and mmap returned ENOMEM. Use the same conservative 38-bit RISC-V limit that the FreeBSD PAL already uses so the Linux PAL sizes its pagemap for the usable lower address range.1 parent 526c55b commit bc3d5c0
1 file changed
Lines changed: 3 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
42 | 42 | | |
43 | 43 | | |
44 | 44 | | |
| 45 | + | |
| 46 | + | |
| 47 | + | |
45 | 48 | | |
46 | 49 | | |
47 | 50 | | |
| |||
0 commit comments