summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDhaval <dhaval@rivosinc.com>2025-04-14 13:25:15 +0530
committermergify[bot] <37929162+mergify[bot]@users.noreply.github.com>2025-04-14 08:44:05 +0000
commitfdede2e1eaa44119aabb4d29e2c6812d758fb953 (patch)
treeb881d03cba4febf8ed23756f2e5807e93e6358a5
parentc5e3a840b936f9640d5c45f32b37bb24d0c61a67 (diff)
downloadedk2-fdede2e1eaa44119aabb4d29e2c6812d758fb953.zip
edk2-fdede2e1eaa44119aabb4d29e2c6812d758fb953.tar.gz
edk2-fdede2e1eaa44119aabb4d29e2c6812d758fb953.tar.bz2
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 <dhaval@rivosinc.com>
-rw-r--r--MdeModulePkg/Include/Guid/MmCommBuffer.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/MdeModulePkg/Include/Guid/MmCommBuffer.h b/MdeModulePkg/Include/Guid/MmCommBuffer.h
index df4ea31..e3484e0 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.
///