diff options
author | mdkinney <mdkinney@6f19259b-4bc3-4df7-8a09-765794883524> | 2006-11-28 02:41:26 +0000 |
---|---|---|
committer | mdkinney <mdkinney@6f19259b-4bc3-4df7-8a09-765794883524> | 2006-11-28 02:41:26 +0000 |
commit | 4a3286201898cd85ac9f5fa4cceadd09d59d8965 (patch) | |
tree | 07682e6e9fe90febf5110e7c531212050f43853e /MdePkg/Include | |
parent | f2d16cde5a70620ff149710dfeedab19846519ac (diff) | |
download | edk2-4a3286201898cd85ac9f5fa4cceadd09d59d8965.zip edk2-4a3286201898cd85ac9f5fa4cceadd09d59d8965.tar.gz edk2-4a3286201898cd85ac9f5fa4cceadd09d59d8965.tar.bz2 |
Declare the alignment required for jump Buffers
git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@2021 6f19259b-4bc3-4df7-8a09-765794883524
Diffstat (limited to 'MdePkg/Include')
-rw-r--r-- | MdePkg/Include/Library/BaseLib.h | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/MdePkg/Include/Library/BaseLib.h b/MdePkg/Include/Library/BaseLib.h index 329385d..266df77 100644 --- a/MdePkg/Include/Library/BaseLib.h +++ b/MdePkg/Include/Library/BaseLib.h @@ -40,6 +40,8 @@ typedef struct { UINT32 Eip;
} BASE_LIBRARY_JUMP_BUFFER;
+#define BASE_LIBRARY_JUMP_BUFFER_ALIGNMENT 8
+
#elif defined (MDE_CPU_IPF)
//
// IPF context buffer used by SetJump() and LongJump()
@@ -85,6 +87,8 @@ typedef struct { UINT64 FPSR;
} BASE_LIBRARY_JUMP_BUFFER;
+#define BASE_LIBRARY_JUMP_BUFFER_ALIGNMENT 0x10
+
#elif defined (MDE_CPU_X64)
//
// X64 context buffer used by SetJump() and LongJump()
@@ -102,6 +106,8 @@ typedef struct { UINT64 Rip;
} BASE_LIBRARY_JUMP_BUFFER;
+#define BASE_LIBRARY_JUMP_BUFFER_ALIGNMENT 8
+
#elif defined (MDE_CPU_EBC)
//
// EBC context buffer used by SetJump() and LongJump()
@@ -114,6 +120,8 @@ typedef struct { UINT64 IP;
} BASE_LIBRARY_JUMP_BUFFER;
+#define BASE_LIBRARY_JUMP_BUFFER_ALIGNMENT 8
+
#else
#error Unknown Processor Type
#endif
|