]> git.dujemihanovic.xyz Git - u-boot.git/commit
x86: acpi: Store the ACPI context in global_data
authorSimon Glass <sjg@chromium.org>
Wed, 4 Nov 2020 16:57:19 +0000 (09:57 -0700)
committerBin Meng <bmeng.cn@gmail.com>
Thu, 5 Nov 2020 06:58:45 +0000 (14:58 +0800)
commit5019e201ccaee4bd54ba707dfc4eece885857629
tree64a6812ad48def169d89b6694fd7dbaee60aeb76
parent38e498c3a2b5b52e7935516cba0927e0d90c365c
x86: acpi: Store the ACPI context in global_data

At present we create the ACPI context but then drop it after generation of
tables is complete. This is annoying because we have to then search for
tables later.

To fix this, allocate the context and store it in global_data.

Signed-off-by: Simon Glass <sjg@chromium.org>
Reviewed-by: Bin Meng <bmeng.cn@gmail.com>
arch/x86/lib/acpi_table.c
include/asm-generic/global_data.h