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 7587a36 commit d6a1928Copy full SHA for d6a1928
arch/riscv/mm/init.c
@@ -1132,13 +1132,7 @@ asmlinkage void __init setup_vm(uintptr_t dtb_pa)
1132
kernel_map.va_pa_offset = IS_ENABLED(CONFIG_64BIT) ?
1133
0UL : PAGE_OFFSET - kernel_map.phys_addr;
1134
1135
- /*
1136
- * The default maximal physical memory size is KERN_VIRT_SIZE for 32-bit
1137
- * kernel, whereas for 64-bit kernel, the end of the virtual address
1138
- * space is occupied by the modules/BPF/kernel mappings which reduces
1139
- * the available size of the linear mapping.
1140
- */
1141
- memory_limit = KERN_VIRT_SIZE - (IS_ENABLED(CONFIG_64BIT) ? SZ_4G : 0);
+ memory_limit = KERN_VIRT_SIZE;
1142
1143
/* Sanity check alignment and size */
1144
BUG_ON((PAGE_OFFSET % PGDIR_SIZE) != 0);
0 commit comments