OSDN Git Service

pc: acpi: use build_append_foo() API to construct FADT
authorIgor Mammedov <imammedo@redhat.com>
Wed, 28 Feb 2018 14:23:52 +0000 (15:23 +0100)
committerMichael S. Tsirkin <mst@redhat.com>
Tue, 13 Mar 2018 21:09:50 +0000 (23:09 +0200)
commit5d7a334f7c40dcb6aab3e4496ac826e813ccdb07
tree3433fff826ff91d733429de7017202aa6f6cfc31
parent937d1b58714b4002dd0fb7c3573c42b1c017e61b
pc: acpi: use build_append_foo() API to construct FADT

build_append_foo() API doesn't need explicit endianness
conversions which eliminates a source of errors and
it makes build_fadt() look like declarative definition of
FADT table in ACPI spec, which makes it easy to review.
Also it allows easily extending FADT to support other
revisions which will be used by follow up patches
where build_fadt() will be reused for ARM target.

Signed-off-by: Igor Mammedov <imammedo@redhat.com>
Reviewed-by: Eric Auger <eric.auger@redhat.com>
Tested-by: Eric Auger <eric.auger@redhat.com>
Reviewed-by: Michael S. Tsirkin <mst@redhat.com>
Signed-off-by: Michael S. Tsirkin <mst@redhat.com>
hw/i386/acpi-build.c