mirror of
https://github.com/Motorhead1991/qemu.git
synced 2026-03-04 09:04:39 -07:00
acpi: build_tpm_tcpa: use acpi_table_begin()/acpi_table_end() instead of build_header()
it replaces error-prone pointer arithmetic for build_header() API, with 2 calls to start and finish table creation, which hides offsets magic from API user. While at it switch to build_append_int_noprefix() to build table entries (which also removes some manual offset calculations). Signed-off-by: Igor Mammedov <imammedo@redhat.com> Reviewed-by: Eric Auger <eric.auger@redhat.com> Message-Id: <20210924122802.1455362-16-imammedo@redhat.com> Reviewed-by: Michael S. Tsirkin <mst@redhat.com> Signed-off-by: Michael S. Tsirkin <mst@redhat.com>
This commit is contained in:
parent
43dde1705c
commit
57cb8cfbf2
2 changed files with 23 additions and 29 deletions
|
|
@ -418,20 +418,6 @@ struct AcpiSratProcessorGiccAffinity {
|
|||
|
||||
typedef struct AcpiSratProcessorGiccAffinity AcpiSratProcessorGiccAffinity;
|
||||
|
||||
/*
|
||||
* TCPA Description Table
|
||||
*
|
||||
* Following Level 00, Rev 00.37 of specs:
|
||||
* http://www.trustedcomputinggroup.org/resources/tcg_acpi_specification
|
||||
*/
|
||||
struct Acpi20Tcpa {
|
||||
ACPI_TABLE_HEADER_DEF /* ACPI common table header */
|
||||
uint16_t platform_class;
|
||||
uint32_t log_area_minimum_length;
|
||||
uint64_t log_area_start_address;
|
||||
} QEMU_PACKED;
|
||||
typedef struct Acpi20Tcpa Acpi20Tcpa;
|
||||
|
||||
/* DMAR - DMA Remapping table r2.2 */
|
||||
struct AcpiTableDmar {
|
||||
ACPI_TABLE_HEADER_DEF
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue