summaryrefslogtreecommitdiff
path: root/arch
diff options
context:
space:
mode:
authorPalmer Dabbelt <palmerdabbelt@google.com>2021-07-21 22:18:58 -0700
committerPalmer Dabbelt <palmerdabbelt@google.com>2021-07-21 22:18:58 -0700
commit444818b599189fd8b6c814da542ff8cfc9fe67d4 (patch)
tree0dfdee8bf784484a4048a1f57668fe59b160edac /arch
parente73f0f0ee7541171d89f2e2491130c7771ba58d3 (diff)
parentd0e4dae74470fb709fc0ab61862c317938f4cc4d (diff)
Merge remote-tracking branch 'riscv/riscv-fix-32bit' into fixes
This contains a single fix for 32-bit boot. It happens this was already fixed by c9811e379b21 ("riscv: Add mem kernel parameter support"), but the bug existed before that feature addition so I've applied the patch earlier and then merged it in (which results in a conflict, which is fixed via not changing the resulting tree). * riscv/riscv-fix-32bit: riscv: Fix 32-bit RISC-V boot failure
Diffstat (limited to 'arch')
-rw-r--r--arch/riscv/mm/init.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/arch/riscv/mm/init.c b/arch/riscv/mm/init.c
index 269fc648ef3d..ac48742fa6fc 100644
--- a/arch/riscv/mm/init.c
+++ b/arch/riscv/mm/init.c
@@ -175,6 +175,7 @@ static void __init setup_bootmem(void)
memblock_reserve(vmlinux_start, vmlinux_end - vmlinux_start);
dram_end = memblock_end_of_DRAM();
+
/*
* memblock allocator is not aware of the fact that last 4K bytes of
* the addressable memory can not be mapped because of IS_ERR_VALUE