diff options
author | Alper Nebi Yasak <alpernebiyasak@gmail.com> | 2024-02-05 20:16:26 +0300 |
---|---|---|
committer | Felix Held <felix-coreboot@felixheld.de> | 2024-06-14 12:35:22 +0000 |
commit | 08d7d31384e94cb4972206cc37b7c8accd55209c (patch) | |
tree | 3e11f4cd1d5a14eae3b5d77f530f5dd2fa4c1650 /src/mainboard/google/brya/variants/xol | |
parent | d41ad724cd2430558e4ecbb5e90b769555b68c34 (diff) |
mainboard/qemu-riscv: Get top of memory from device-tree blob
Trying to probe RAM space to figure out top of memory causes an
exception on RISC-V virtual machines with recent versions of QEMU, but
we temporarily enable exception handlers for that and use it to help
detect if a RAM address is usable or not. However, QEMU docs recommend
reading device information from the device-tree blob it provides us at
the start of RAM.
A previous commit adds a library function to parse device-tree blob that
QEMU provides us. Use it to determine top of memory in RISC-V QEMU
virtual machines, but still fall back to the RAM probing approach as a
last-ditch effort.
Change-Id: I9e4a95f49ad373675939329eef40d7423a4132ab
Signed-off-by: Alper Nebi Yasak <alpernebiyasak@gmail.com>
Reviewed-on: https://review.coreboot.org/c/coreboot/+/80363
Tested-by: build bot (Jenkins) <no-reply@coreboot.org>
Reviewed-by: Maximilian Brune <maximilian.brune@9elements.com>
Diffstat (limited to 'src/mainboard/google/brya/variants/xol')
0 files changed, 0 insertions, 0 deletions