aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
Diffstat (limited to 'arch/riscv/mm/init.c')
-rw-r--r--arch/riscv/mm/init.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/arch/riscv/mm/init.c b/arch/riscv/mm/init.c
index 8e577f14f120..e4133c20744c 100644
--- a/arch/riscv/mm/init.c
+++ b/arch/riscv/mm/init.c
@@ -174,7 +174,7 @@ void __init setup_bootmem(void)
174 * Make sure that any memory beyond mem_start + (-PAGE_OFFSET) is removed 174 * Make sure that any memory beyond mem_start + (-PAGE_OFFSET) is removed
175 * as it is unusable by kernel. 175 * as it is unusable by kernel.
176 */ 176 */
177 memblock_enforce_memory_limit(mem_start - PAGE_OFFSET); 177 memblock_enforce_memory_limit(-PAGE_OFFSET);
178 178
179 /* Reserve from the start of the kernel to the end of the kernel */ 179 /* Reserve from the start of the kernel to the end of the kernel */
180 memblock_reserve(vmlinux_start, vmlinux_end - vmlinux_start); 180 memblock_reserve(vmlinux_start, vmlinux_end - vmlinux_start);