We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 5ba7a75 commit 5f77108Copy full SHA for 5f77108
arch/riscv/mm/init.c
@@ -252,7 +252,7 @@ static void __init setup_bootmem(void)
252
* The size of the linear page mapping may restrict the amount of
253
* usable RAM.
254
*/
255
- if (IS_ENABLED(CONFIG_64BIT)) {
+ if (IS_ENABLED(CONFIG_64BIT) && IS_ENABLED(CONFIG_MMU)) {
256
max_mapped_addr = __pa(PAGE_OFFSET) + KERN_VIRT_SIZE;
257
memblock_cap_memory_range(phys_ram_base,
258
max_mapped_addr - phys_ram_base);
0 commit comments