summaryrefslogtreecommitdiff
path: root/sys/dev/acpi/acpireg.h
diff options
context:
space:
mode:
authorPatrick Wildt <patrick@cvs.openbsd.org>2021-03-23 09:41:13 +0000
committerPatrick Wildt <patrick@cvs.openbsd.org>2021-03-23 09:41:13 +0000
commita7a83acf2d607ae36a6fb0b78479a8ede996a423 (patch)
tree225dad0fe7ab633714dec9b7aaf46ad6658a20df /sys/dev/acpi/acpireg.h
parent153392091429fd42aa436c950b0c23700026a1a4 (diff)
Pack the SPCR struct definition since the struct isn't naturally aligned
or padded, and hence e. g. the access to the PCI vendor/device id would be broken. The structs for the other tables all seem to be packed as well. ok kettenis@
Diffstat (limited to 'sys/dev/acpi/acpireg.h')
-rw-r--r--sys/dev/acpi/acpireg.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/dev/acpi/acpireg.h b/sys/dev/acpi/acpireg.h
index 0c80c31d044..f2ff1f02564 100644
--- a/sys/dev/acpi/acpireg.h
+++ b/sys/dev/acpi/acpireg.h
@@ -1,4 +1,4 @@
-/* $OpenBSD: acpireg.h,v 1.54 2021/03/15 22:40:23 patrick Exp $ */
+/* $OpenBSD: acpireg.h,v 1.55 2021/03/23 09:41:12 patrick Exp $ */
/*
* Copyright (c) 2005 Thorsten Lockert <tholo@sigmasoft.com>
* Copyright (c) 2005 Marco Peereboom <marco@openbsd.org>
@@ -448,7 +448,7 @@ struct acpi_spcr {
uint32_t pci_flags;
uint8_t pci_segment;
uint32_t reserved3;
-};
+} __packed;
struct acpi_facs {
uint8_t signature[4];