]> git.dujemihanovic.xyz Git - u-boot.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)
commit3beba4ad34649e053b97c5a61cd7de55bc718866
tree73b52805b973ffe34fde19d63204b6a89426a12d
parentb953ec2bca1ebe059366e870eb4bec5e7af9c36b
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