commit | 489b25ac8771353bb52c8fdd41e89e035aed2a21 | [log] [tgz] |
---|---|---|
author | Bin Meng <bin.meng@windriver.com> | Sun Jan 31 20:35:57 2021 +0800 |
committer | Simon Glass <sjg@chromium.org> | Wed Feb 03 03:38:41 2021 -0700 |
tree | 2d185c829f6461849cfbf6d5988233d013506afe | |
parent | 1f2c795823fb48c061e2a87baea0f2cc4dcfa6b9 [diff] |
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>