summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLennart Poettering <lennart@poettering.net>2020-04-23 08:49:10 +0200
committerLennart Poettering <lennart@poettering.net>2020-04-23 08:55:08 +0200
commit49490c1d353bc920cbf73f4c71e9c35d2e3eb8b1 (patch)
tree6115eb459c42daf596f7d701ad8e767a48c1b052
parent0cd41757d061c4b0a85532499f29f23651279234 (diff)
downloadsystemd-49490c1d353bc920cbf73f4c71e9c35d2e3eb8b1.tar.gz
acpi-fpdt: mark structures as packed
Let's make sure the alignment doesn't matter.
-rw-r--r--src/shared/acpi-fpdt.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/shared/acpi-fpdt.c b/src/shared/acpi-fpdt.c
index d565ebd43e..38c464c912 100644
--- a/src/shared/acpi-fpdt.c
+++ b/src/shared/acpi-fpdt.c
@@ -23,7 +23,7 @@ struct acpi_table_header {
uint32_t oem_revision;
char asl_compiler_id[4];
uint32_t asl_compiler_revision;
-};
+} _packed_;
enum {
ACPI_FPDT_TYPE_BOOT = 0,
@@ -36,12 +36,12 @@ struct acpi_fpdt_header {
uint8_t revision;
uint8_t reserved[4];
uint64_t ptr;
-};
+} _packed_;
struct acpi_fpdt_boot_header {
char signature[4];
uint32_t length;
-};
+} _packed_;
enum {
ACPI_FPDT_S3PERF_RESUME_REC = 0,
@@ -59,7 +59,7 @@ struct acpi_fpdt_boot {
uint64_t startup_start;
uint64_t exit_services_entry;
uint64_t exit_services_exit;
-};
+} _packed;
int acpi_get_boot_usec(usec_t *loader_start, usec_t *loader_exit) {
_cleanup_free_ char *buf = NULL;