This is the seabios code that adds support for loading acpi tables from QEMU: it's working fine here and in fact, I am able to get exactly same tables with builtin tables and with tables coming from qemu.
Changes from v1: - simplified linker interfaces along the lines suggested by Kevin - fixed lots of bugs
Michael S. Tsirkin (5): linker: utility to patch in-memory ROM files pmm: add a way to test whether memory is in FSEG acpi: pack rsdp acpi: load and link tables from /etc/acpi/ acpi: add an option to disable builtin tables
Makefile | 2 +- src/Kconfig | 12 +++++- src/acpi.c | 39 +++++++++++++++++ src/acpi.h | 2 +- src/linker.c | 132 +++++++++++++++++++++++++++++++++++++++++++++++++++++++++ src/linker.h | 72 +++++++++++++++++++++++++++++++ src/paravirt.c | 2 + src/pmm.c | 24 ++++++++--- src/util.h | 2 + 9 files changed, 278 insertions(+), 9 deletions(-) create mode 100644 src/linker.c create mode 100644 src/linker.h