hw: arm: Convert the RSDP build to the buid_append_foo() API
commit77321eaf15aacdd11cd6dd3efef0c6dd26629e7f
authorSamuel Ortiz <sameo@linux.intel.com>
Mon, 17 Dec 2018 10:48:35 +0000 (17 11:48 +0100)
committerMichael S. Tsirkin <mst@redhat.com>
Wed, 19 Dec 2018 21:48:16 +0000 (19 16:48 -0500)
treec8439eb095a232839757e509ae8b962d5e3b4ad4
parent5c5fce1ab5672a0a9a50c867114481a93298bf23
hw: arm: Convert the RSDP build to the buid_append_foo() API

Instead of filling a mapped and packed C structure field in random order
and being careful about endianness and sizes, build_rsdp() now uses
build_append_int_noprefix() to compose RSDP table.

This makes reviewing and maintaining code easier as this is almost
matching 1:1 the ACPI spec itself.

Signed-off-by: Samuel Ortiz <sameo@linux.intel.com>
Reviewed-by: Igor Mammedov <imammedo@redhat.com>
Reviewed-by: Andrew Jones <drjones@redhat.com>
Reviewed-by: Michael S. Tsirkin <mst@redhat.com>
Signed-off-by: Michael S. Tsirkin <mst@redhat.com>
hw/arm/virt-acpi-build.c