From fdede2e1eaa44119aabb4d29e2c6812d758fb953 Mon Sep 17 00:00:00 2001 From: Dhaval Date: Mon, 14 Apr 2025 13:25:15 +0530 Subject: [PATCH] MdeModulePkg: Update MM buffer structs alignment In general, for all HOB related content, the HOB structures must be designed so that natural alignment across all execution modes and byte-packed alignment are the same. Ensure ReturnStatus is aligned on 64 bit to achieve the same. Signed-off-by: Dhaval Sharma --- MdeModulePkg/Include/Guid/MmCommBuffer.h | 3 +++ 1 file changed, 3 insertions(+) diff --git a/MdeModulePkg/Include/Guid/MmCommBuffer.h b/MdeModulePkg/Include/Guid/MmCommBuffer.h index df4ea317eb..e3484e0bb9 100644 --- a/MdeModulePkg/Include/Guid/MmCommBuffer.h +++ b/MdeModulePkg/Include/Guid/MmCommBuffer.h @@ -47,6 +47,9 @@ typedef struct { /// BOOLEAN IsCommBufferValid; + /// For padding purpose + UINT8 Reserved[7]; + /// /// The return status when returning from MM to non-MM. ///