qemu-e2k/hw/acpi
Igor Mammedov 28213cb6a6 acpi: make bios_linker_loader_add_checksum() API offset based
It should help to make clear that bios_linker works in terms
of offsets within a file. Also it should prevent mistakes
where user passes as arguments pointers to unrelated to file blobs.

While at it, considering that it's a ACPI checksum and
it's initial value must be 0, move checksum field zeroing
into bios_linker_loader_add_checksum() instead of doing it
at every call site manually before bios_linker_loader_add_checksum()
is called.

In addition add extra 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>
2016-06-07 15:39:27 +03:00
..
Makefile.objs pc: acpi: consolidate legacy CPU hotplug in one file 2016-06-07 15:36:54 +03:00
acpi_interface.c acpi: extend ACPI interface to provide send_event hook 2016-06-07 15:36:54 +03:00
aml-build.c acpi: make bios_linker_loader_add_checksum() API offset based 2016-06-07 15:39:27 +03:00
bios-linker-loader.c acpi: make bios_linker_loader_add_checksum() API offset based 2016-06-07 15:39:27 +03:00
core.c acpi: extend ACPI interface to provide send_event hook 2016-06-07 15:36:54 +03:00
cpu_hotplug.c pc: use AcpiDeviceIfClass.send_event to issue GPE events 2016-06-07 15:36:54 +03:00
ich9.c pc: use AcpiDeviceIfClass.send_event to issue GPE events 2016-06-07 15:36:54 +03:00
memory_hotplug.c pc: use AcpiDeviceIfClass.send_event to issue GPE events 2016-06-07 15:36:54 +03:00
memory_hotplug_acpi_table.c x86: Clean up includes 2016-01-29 15:07:22 +00:00
nvdimm.c acpi: make bios_linker_loader_add_pointer() API offset based 2016-06-07 15:39:27 +03:00
pcihp.c pc: use AcpiDeviceIfClass.send_event to issue GPE events 2016-06-07 15:36:54 +03:00
piix4.c pc: use AcpiDeviceIfClass.send_event to issue GPE events 2016-06-07 15:36:54 +03:00
tco.c x86: Clean up includes 2016-01-29 15:07:22 +00:00