commit | 85c714d8dcd56f63c2c0ae1b0f6a7e4a96c918a4 | [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 | 7a3c628c43f7200684edf81783e11b69fd0fd7df [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>