]> git.proxmox.com Git - mirror_edk2.git/commitdiff
Add #define CPU_STACK_ALIGNMENT to the ProcessorBind.h for each of the supported...
authormdkinney <mdkinney@6f19259b-4bc3-4df7-8a09-765794883524>
Thu, 9 Nov 2006 21:26:29 +0000 (21:26 +0000)
committermdkinney <mdkinney@6f19259b-4bc3-4df7-8a09-765794883524>
Thu, 9 Nov 2006 21:26:29 +0000 (21:26 +0000)
git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@1920 6f19259b-4bc3-4df7-8a09-765794883524

MdePkg/Include/Ebc/ProcessorBind.h
MdePkg/Include/Ia32/ProcessorBind.h
MdePkg/Include/Ipf/ProcessorBind.h
MdePkg/Include/x64/ProcessorBind.h

index 5a6e7dc9bbdb58ce5bab9ceafd67bb09b9f43be5..2cb0753867571df0c33734b19507d7292dac2f46 100644 (file)
@@ -61,6 +61,12 @@ typedef unsigned long         UINTN;
 // Maximum legal EBC address\r
 //\r
 #define MAX_ADDRESS   ((UINTN) ~0)\r
+\r
+//\r
+// The stack alignment required for EBC\r
+//\r
+#define CPU_STACK_ALIGNMENT   sizeof(UINTN)\r
+\r
 //\r
 // Modifier to ensure that all protocol member functions and EFI intrinsics\r
 // use the correct C calling convention. All protocol member functions and\r
index e0ddba4fe55f5c3203ae0e47daa41d2dd1a7b676..b0a991ef815b3e3373afd3d85fed93799b79b55a 100644 (file)
@@ -146,6 +146,11 @@ typedef INT32   INTN;
 //\r
 #define MAX_ADDRESS   0xFFFFFFFF\r
 \r
+//\r
+// The stack alignment required for IA-32\r
+//\r
+#define CPU_STACK_ALIGNMENT   sizeof(UINTN)\r
+\r
 //\r
 // Modifier to ensure that all protocol member functions and EFI intrinsics\r
 // use the correct C calling convention. All protocol member functions and\r
index 86374b2249a7344b8c44eab90aa68ebe7a9db223..f3706a782a498952add1b18bb64139dccd6a27e8 100644 (file)
@@ -171,6 +171,12 @@ typedef INT64   INTN;
 //\r
 #define MAX_ADDRESS   0xFFFFFFFFFFFFFFFFULL\r
 \r
+//\r
+// Per the Itanium Software Conventions and Runtime Architecture Guide,\r
+// section 3.3.4, IPF stack must always be 16-byte aligned.\r
+//\r
+#define CPU_STACK_ALIGNMENT   16\r
+\r
 //\r
 // Modifier to ensure that all protocol member functions and EFI intrinsics\r
 // use the correct C calling convention. All protocol member functions and\r
index 3a2fea26ceb32aae143e10d5d536332f9f414a0d..d8c76922c89f9e2e4c22c463ad5a91539a0e4522 100644 (file)
@@ -159,10 +159,15 @@ typedef INT64   INTN;
 #define MAX_2_BITS  0xC000000000000000\r
 \r
 //\r
-// Maximum legal Itanium-based address\r
+// Maximum legal X64 address\r
 //\r
 #define MAX_ADDRESS   0xFFFFFFFFFFFFFFFF\r
 \r
+//\r
+// The stack alignment required for X64\r
+//\r
+#define CPU_STACK_ALIGNMENT   sizeof(UINTN)\r
+\r
 //\r
 // Modifier to ensure that all protocol member functions and EFI intrinsics\r
 // use the correct C calling convention. All protocol member functions and\r