
On Sun, Jul 16, 2023 at 11:40 AM Simon Glass sjg@chromium.org wrote:
The ACPI tables are special in that they are passed to EFI as a separate piece, independent of other tables.
Also they can be spread over two areas of memory, e.g. with QEMU we end up with tables kept in high memory as well.
Add new global_data fields to hold this information and update the bdinfo command to show the table areas.
Move the rom_table_end variable into the loop that uses it.
Signed-off-by: Simon Glass sjg@chromium.org
Changes in v5:
- Add a comment about QFW putting its tables up high
- Add a comment that the bloblist is always in high memory
Changes in v3:
- Adjust the code to handle qemu writing a pointer to tables in memory
Changes in v2:
- Handle the case where the tables are in the bloblist
arch/sandbox/include/asm/global_data.h | 4 ++++ arch/x86/include/asm/global_data.h | 4 ++++ arch/x86/lib/bdinfo.c | 4 ++++ arch/x86/lib/tables.c | 20 +++++++++++++++++++- drivers/misc/qfw.c | 9 +++++++++ 5 files changed, 40 insertions(+), 1 deletion(-)
Reviewed-by: Bin Meng bmeng.cn@gmail.com