u-boot/arch/sandbox
Simon Glass a8efebe719 acpi: Write pointers to tables instead of addresses
Sandbox uses an API to map between addresses and pointers. This allows
it to have (emulated) memory at zero and avoid arch-specific addressing
details. It also allows memory-mapped peripherals to work.

As an example, on many machines sandbox maps address 100 to pointer
value 10000000.

However this is not correct for ACPI, if sandbox starts another program
(e.g EFI app) and passes it the tables. That app has no knowledge of
sandbox's address mapping. So to make this work we want to store
10000000 as the value in the table.

Add two new 'nomap' functions which clearly make this exeption to how
sandbox works.

This should allow EFI apps to access ACPI tables with sandbox, e.g. for
testing purposes.

Signed-off-by: Simon Glass <sjg@chromium.org>
Suggested-by: Heinrich Schuchardt <xypron.glpk@gmx.de>
2024-01-07 13:45:07 -07:00
..
cpu Merge patch series "Complete decoupling of bootm logic from commands" 2023-12-21 16:10:00 -05:00
dts Prepare v2024.01-rc5 2023-12-18 09:55:32 -05:00
include/asm acpi: Write pointers to tables instead of addresses 2024-01-07 13:45:07 -07:00
lib Merge patch series "Complete decoupling of bootm logic from commands" 2023-12-21 16:10:00 -05:00
config.mk sandbox: eliminate unused functions from binaries 2023-11-02 22:38:01 -04:00
Kconfig sandbox: Rework how SDL is enabled / disabled 2022-12-05 16:11:50 -05:00
Makefile sandbox: fix build failure with musl and SDL 2022-02-09 12:26:12 -07:00