]> git.baikalelectronics.ru Git - uboot.git/commit
sandbox: ensure that state->ram_buf is in low memory
authorHeinrich Schuchardt <xypron.glpk@gmx.de>
Tue, 11 May 2021 19:03:16 +0000 (21:03 +0200)
committerSimon Glass <sjg@chromium.org>
Tue, 6 Jul 2021 16:38:03 +0000 (10:38 -0600)
commit84e91cfb885b6317dc3ef86546e14d580b2a0450
tree73b52805b973ffe34fde19d63204b6a89426a12d
parent351dfaba0b76240a1ce73360e361b27e027c3b3d
sandbox: ensure that state->ram_buf is in low memory

Addresses in state->ram_buf must be in the low 4 GiB of the address space.
Otherwise we cannot correctly fill SMBIOS tables. This shows up in warnings
like:

    WARNING: SMBIOS table_address overflow 7f752735e020

Ensure that state->ram_buf is initialized by the first invocation of
os_malloc().

Signed-off-by: Heinrich Schuchardt <xypron.glpk@gmx.de>
Reviewed-by: Simon Glass <sjg@chromium.org>
arch/sandbox/cpu/start.c