]> git.proxmox.com Git - mirror_edk2.git/blobdiff - MdePkg/Library/BaseLib/x86Thunk.c
Updated to support compiler intrinsics properly. I had to comment out some of the...
[mirror_edk2.git] / MdePkg / Library / BaseLib / x86Thunk.c
index d4e37ae59e6671a6cc060f3d527fd8da00ccd8cc..44b452ceb2fca680d5dc91d5e4418855ecf7bca9 100644 (file)
 \r
 **/\r
 \r
+//\r
+// Include common header file for this module.\r
+//\r
+#include "CommonHeader.h"\r
+\r
 //\r
 // Byte packed structure for a segment descriptor in a GDT/LDT\r
 //\r
@@ -58,6 +63,7 @@ extern CONST UINT16                 mTransition;
 \r
 **/\r
 IA32_REGISTER_SET *\r
+EFIAPI\r
 InternalAsmThunk16 (\r
   IN      IA32_REGISTER_SET         *RegisterSet,\r
   IN OUT  VOID                      *Transition\r
@@ -95,6 +101,10 @@ AsmGetThunk16Properties (
   ASSERT (ExtraStackSize != NULL);\r
 \r
   *RealModeBufferSize = m16Size;\r
+\r
+  //\r
+  // Extra 4 bytes for return address, and another 4 bytes for mode transition\r
+  //\r
   *ExtraStackSize = sizeof (IA32_DWORD_REGS) + 8;\r
 }\r
 \r