This is the seabios code that adds support for loading acpi tables from QEMU.
Changes from v4: - address Kevin's comments: move loader to src/fw/ simplify some code drop some unused code chunks load from ROM even if !ACPI rename option to make it non ACPI specific Changes from v3: - updated to latest bits - add option to disable loading from QEMU
Changes from v2: - addressed comments from Kevin: fixed coding style, minimized changes to existing code
Changes from v1: - simplified linker interfaces along the lines suggested by Kevin - fixed lots of bugs
Michael S. Tsirkin (4): romfile_loader: utility to patch in-memory ROM files malloc: support looking up a given pattern in FSEG acpi: pack rsdp acpi: load and link tables through romfile loader
Makefile | 2 +- src/fw/romfile_loader.h | 72 ++++++++++++++++++++ src/malloc.h | 1 + src/std/acpi.h | 2 +- src/fw/acpi.c | 30 ++++++++ src/fw/romfile_loader.c | 177 ++++++++++++++++++++++++++++++++++++++++++++++++ src/malloc.c | 19 +++++- src/Kconfig | 11 +++ 8 files changed, 311 insertions(+), 3 deletions(-) create mode 100644 src/fw/romfile_loader.h create mode 100644 src/fw/romfile_loader.c