]> xenbits.xensource.com Git - people/aperard/ovmf.git/commitdiff
MdePkg/IpmiNetFnGroupExtension.h: Enforce structure alignment
authorNhi Pham <nhi@os.amperecomputing.com>
Mon, 9 Sep 2024 07:22:22 +0000 (14:22 +0700)
committermergify[bot] <37929162+mergify[bot]@users.noreply.github.com>
Thu, 12 Sep 2024 04:19:18 +0000 (04:19 +0000)
The natural aligmenent seems to be failed on some cases. So, this patch
intends to add the pack(1) to ensure the structure aligned with a
one-byte boundary.

Signed-off-by: Nhi Pham <nhi@os.amperecomputing.com>
MdePkg/Include/IndustryStandard/IpmiNetFnGroupExtension.h

index aa242efcbbffba88dac64ef48fe3e0e8c485f341..b821ad51e39fd5fdcfcd75f7591f06454305460e 100644 (file)
@@ -4,6 +4,12 @@
   Copyright (c) 1999 - 2015, Intel Corporation. All rights reserved.<BR>\r
   Copyright (c) 2024, Ampere Computing LLC. All rights reserved.<BR>\r
   SPDX-License-Identifier: BSD-2-Clause-Patent\r
+\r
+  @par Revision Reference:\r
+    - Arm Server Base Manageability Requirements (SBMR) Specification\r
+      Revision 2.0d, Section F\r
+      https://developer.arm.com/documentation/den0069\r
+\r
 **/\r
 \r
 #ifndef _IPMI_NET_FN_GROUP_EXTENSION_H_\r
@@ -27,6 +33,7 @@
 /// https://developer.arm.com/documentation/den0069\r
 ///\r
 \r
+#pragma pack(1)\r
 //\r
 // Definitions for send progress code command\r
 //\r
@@ -85,5 +92,6 @@ typedef struct {
   UINT8                                             DefiningBody;\r
   IPMI_GROUP_EXTENSION_BOOT_PROGRESS_CODE_FORMAT    BootProgressCode;\r
 } IPMI_GROUP_EXTENSION_BOOT_PROGRESS_CODE_GET_RESPONSE;\r
+#pragma pack()\r
 \r
 #endif\r