u-boot-brain/arch/riscv/cpu/generic
Bin Meng 85c714d8dc riscv: Adjust board_get_usable_ram_top() for 32-bit
When testing QEMU RISC-V 'virt' machine with a 2 GiB memory
configuration, it was discovered gd->ram_top is assigned to
value zero in setup_dest_addr().

While gd->ram_top should not be declared as type `unsigned long`,
which will be updated in a future patch, the current logic in
board_get_usable_ram_top() can be updated to cover both 64-bit
and 32-bit RISC-V.

Signed-off-by: Bin Meng <bin.meng@windriver.com>
2021-02-03 03:38:41 -07:00
..
cpu.c common: Drop net.h from common header 2020-05-18 17:33:31 -04:00
dram.c riscv: Adjust board_get_usable_ram_top() for 32-bit 2021-02-03 03:38:41 -07:00
Kconfig riscv: Rework riscv timer driver to only support S-mode 2020-09-30 08:54:45 +08:00
Makefile riscv: Rename cpu/qemu to cpu/generic 2019-02-27 09:12:33 +08:00