summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorNhi Pham <nhi@os.amperecomputing.com>2024-09-09 14:22:22 +0700
committermergify[bot] <37929162+mergify[bot]@users.noreply.github.com>2024-09-12 04:19:18 +0000
commitbacee5113e813520b92babf0fc6f5914cdfc9fab (patch)
tree43bc2086022dacb3785b6bafb7698e416e917a97
parente41e728c1640d5f3c5c24c31e088bf34f2fde197 (diff)
downloadedk2-bacee5113e813520b92babf0fc6f5914cdfc9fab.tar.gz
MdePkg/IpmiNetFnGroupExtension.h: Enforce structure alignment
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>
-rw-r--r--MdePkg/Include/IndustryStandard/IpmiNetFnGroupExtension.h8
1 files changed, 8 insertions, 0 deletions
diff --git a/MdePkg/Include/IndustryStandard/IpmiNetFnGroupExtension.h b/MdePkg/Include/IndustryStandard/IpmiNetFnGroupExtension.h
index aa242efcbb..b821ad51e3 100644
--- a/MdePkg/Include/IndustryStandard/IpmiNetFnGroupExtension.h
+++ b/MdePkg/Include/IndustryStandard/IpmiNetFnGroupExtension.h
@@ -4,6 +4,12 @@
Copyright (c) 1999 - 2015, Intel Corporation. All rights reserved.<BR>
Copyright (c) 2024, Ampere Computing LLC. All rights reserved.<BR>
SPDX-License-Identifier: BSD-2-Clause-Patent
+
+ @par Revision Reference:
+ - Arm Server Base Manageability Requirements (SBMR) Specification
+ Revision 2.0d, Section F
+ https://developer.arm.com/documentation/den0069
+
**/
#ifndef _IPMI_NET_FN_GROUP_EXTENSION_H_
@@ -27,6 +33,7 @@
/// https://developer.arm.com/documentation/den0069
///
+#pragma pack(1)
//
// Definitions for send progress code command
//
@@ -85,5 +92,6 @@ typedef struct {
UINT8 DefiningBody;
IPMI_GROUP_EXTENSION_BOOT_PROGRESS_CODE_FORMAT BootProgressCode;
} IPMI_GROUP_EXTENSION_BOOT_PROGRESS_CODE_GET_RESPONSE;
+#pragma pack()
#endif