Skip to content

Commit

Permalink
Merge remote-tracking branch 'riscv/riscv-fix-32bit' into fixes
Browse files Browse the repository at this point in the history
This contains a single fix for 32-bit boot.  It happens this was already
fixed by c9811e3 ("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
  • Loading branch information
Palmer Dabbelt committed Jul 22, 2021
2 parents e73f0f0 + d0e4dae commit 444818b
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions arch/riscv/mm/init.c
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 444818b

Please sign in to comment.