Bug Fix: Define CPU_STACK_ALIGNMENT for each ARCH.

git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@6596 6f19259b-4bc3-4df7-8a09-765794883524
This commit is contained in:
qwang12 2008-11-18 09:50:35 +00:00
parent 2ff2921247
commit e70330e0e3
4 changed files with 21 additions and 0 deletions

View File

@ -38,4 +38,9 @@ Abstract:
#define MDE_CPU_EBC
#endif
///
/// The stack alignment required for EBC
///
#define CPU_STACK_ALIGNMENT sizeof(UINTN)
#endif

View File

@ -38,4 +38,9 @@ Abstract:
#define MDE_CPU_IA32
#endif
///
/// The stack alignment required for IA-32
///
#define CPU_STACK_ALIGNMENT sizeof(UINTN)
#endif

View File

@ -64,5 +64,10 @@ typedef struct {
#define EFI_EXTENDED_SAL_RESET_SERVICES_PROTOCOL_GUID_LO 0x46f58ce17d019990
#define EFI_EXTENDED_SAL_RESET_SERVICES_PROTOCOL_GUID_HI 0xa06a6798513c76a7
//
// Per the Itanium Software Conventions and Runtime Architecture Guide,
// section 3.3.4, IPF stack must always be 16-byte aligned.
//
#define CPU_STACK_ALIGNMENT 16
#endif

View File

@ -38,4 +38,10 @@ Abstract:
#define MDE_CPU_X64
#endif
//
// The stack alignment required for X64
//
#define CPU_STACK_ALIGNMENT 16
#endif