X-Git-Url: https://scm.lunaixsky.com/lunaix-os.git/blobdiff_plain/a0655e5d30f3cdc73b1aaaa4825d8fae9f92ce4a..ae23ad2227bd97df4b464937b1dd54a0f3702148:/lunaix-os/includes/hal/acpi/sdt.h?ds=sidebyside diff --git a/lunaix-os/includes/hal/acpi/sdt.h b/lunaix-os/includes/hal/acpi/sdt.h index fb78097..fc4a332 100644 --- a/lunaix-os/includes/hal/acpi/sdt.h +++ b/lunaix-os/includes/hal/acpi/sdt.h @@ -3,7 +3,9 @@ #include -typedef struct +#define ACPI_TABLE_PACKED __attribute__((packed)) + +typedef struct acpi_sdthdr { uint32_t signature; uint32_t length; @@ -15,12 +17,12 @@ typedef struct uint32_t oem_rev; uint32_t vendor_id; uint32_t vendor_rev; -} __attribute__((packed)) acpi_sdthdr_t; +} ACPI_TABLE_PACKED acpi_sdthdr_t; -typedef struct +typedef struct acpi_rsdt { acpi_sdthdr_t header; acpi_sdthdr_t* entry; -} __attribute__((packed)) acpi_rsdt_t; +} ACPI_TABLE_PACKED acpi_rsdt_t; #endif /* __LUNAIX_ACPI_SDT_H */