From a7a83acf2d607ae36a6fb0b78479a8ede996a423 Mon Sep 17 00:00:00 2001 From: Patrick Wildt Date: Tue, 23 Mar 2021 09:41:13 +0000 Subject: 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@ --- sys/dev/acpi/acpireg.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'sys/dev/acpi/acpireg.h') 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 * Copyright (c) 2005 Marco Peereboom @@ -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]; -- cgit v1.2.3