Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/sys/external/bsd/acpica/dist/include Use pack attribute for ...



details:   https://anonhg.NetBSD.org/src/rev/05e5fbaecd29
branches:  trunk
changeset: 451579:05e5fbaecd29
user:      kamil <kamil%NetBSD.org@localhost>
date:      Tue May 28 04:04:11 2019 +0000

description:
Use pack attribute for AML_RESOURCE in acpica

This fixes kUBSan warnings.

Patch by Akul Pillai.

diffstat:

 sys/external/bsd/acpica/dist/include/amlresrc.h |  7 +++----
 1 files changed, 3 insertions(+), 4 deletions(-)

diffs (24 lines):

diff -r b43c942eee5a -r 05e5fbaecd29 sys/external/bsd/acpica/dist/include/amlresrc.h
--- a/sys/external/bsd/acpica/dist/include/amlresrc.h   Tue May 28 03:56:46 2019 +0000
+++ b/sys/external/bsd/acpica/dist/include/amlresrc.h   Tue May 28 04:04:11 2019 +0000
@@ -642,10 +642,6 @@
 
 #define AML_RESOURCE_PIN_GROUP_CONFIG_REVISION    1       /* ACPI 6.2 */
 
-/* restore default alignment */
-
-#pragma pack()
-
 /* Union of all resource descriptors, so we can allocate the worst case */
 
 typedef union aml_resource
@@ -700,6 +696,9 @@
 
 } AML_RESOURCE;
 
+/* restore default alignment */
+
+#pragma pack()
 
 /* Interfaces used by both the disassembler and compiler */
 



Home | Main Index | Thread Index | Old Index