]> git.proxmox.com Git - mirror_qemu.git/commit - hw/arm/virt-acpi-build.c
acpi: make bios_linker_loader_add_pointer() API offset based
authorIgor Mammedov <imammedo@redhat.com>
Thu, 19 May 2016 13:19:29 +0000 (15:19 +0200)
committerMichael S. Tsirkin <mst@redhat.com>
Tue, 7 Jun 2016 12:39:27 +0000 (15:39 +0300)
commit4678124bb9bfb49e93b83f95c4d2feeb443ea38b
treecd43accea26e80e538898eb2b5f8af12c379dc8a
parent9774ccf7cdb8bfbf024eff02b22f754a49d99df8
acpi: make bios_linker_loader_add_pointer() API offset based

cleanup bios_linker_loader_add_pointer() API by switching
arguments to taking offsets relative to corresponding files
instead of doing pointer arithmetic on behalf of user which
were confusing.

Also make offset inside of source file explicit in API
so that user won't have to manually set it in
destination file blob and while at it add additional
boundary checks.

Signed-off-by: Igor Mammedov <imammedo@redhat.com>
Reviewed-by: Michael S. Tsirkin <mst@redhat.com>
Signed-off-by: Michael S. Tsirkin <mst@redhat.com>
hw/acpi/aml-build.c
hw/acpi/bios-linker-loader.c
hw/acpi/nvdimm.c
hw/arm/virt-acpi-build.c
hw/i386/acpi-build.c
include/hw/acpi/bios-linker-loader.h