]> git.ipfire.org Git - thirdparty/u-boot.git/commit
acpi: Move acpi_add_table() to generic code
authorSimon Glass <sjg@chromium.org>
Sun, 26 Apr 2020 15:19:50 +0000 (09:19 -0600)
committerBin Meng <bmeng.cn@gmail.com>
Thu, 30 Apr 2020 09:16:12 +0000 (17:16 +0800)
commit29b351122ed23124f70473a411c65074d5a61146
tree3291b96b1660fcc0fad1db917def8f2f14768370
parent288edc78213433526e42cbc7c3dabca4fdf8e671
acpi: Move acpi_add_table() to generic code

Move this code to a generic location so that we can test it with sandbox.
This requires adding a few new fields to acpi_ctx, so drop the local
variables used in the original code.

Also use mapmem to avoid pointer-to-address casts which don't work on
sandbox.

Signed-off-by: Simon Glass <sjg@chromium.org>
Reviewed-by: Wolfgang Wallner <wolfgang.wallner@br-automation.com>
arch/x86/lib/acpi_table.c
include/acpi/acpi_table.h
include/dm/acpi.h
lib/acpi/acpi_table.c
test/dm/acpi.c