// The x64 does not do this so pad the stack accordingly.\r
//\r
PushU64 (&VmContext, (UINT64) 0);\r
- PushU64 (&VmContext, (UINT64) 0x1234567887654321);\r
+ PushU64 (&VmContext, (UINT64) 0x1234567887654321ULL);\r
\r
//\r
// For x64, this is where we say our return address is\r
// VM pushes 16-bytes for return address. Simulate that here.\r
//\r
PushU64 (&VmContext, (UINT64) 0);\r
- PushU64 (&VmContext, (UINT64) 0x1234567887654321);\r
+ PushU64 (&VmContext, (UINT64) 0x1234567887654321ULL);\r
\r
//\r
// For x64, this is where we say our return address is\r
UINT64 Addr;\r
INT32 Size;\r
INT32 ThunkSize;\r
- EFI_STATUS Status;\r
\r
//\r
// Check alignment of pointer to EBC code\r
Size = EBC_THUNK_SIZE;\r
ThunkSize = Size;\r
\r
- Status = gBS->AllocatePool (\r
- EfiBootServicesData,\r
- Size,\r
- (VOID *) &Ptr\r
- );\r
- if (Status != EFI_SUCCESS) {\r
+ Ptr = AllocatePool (Size);\r
+\r
+ if (Ptr == NULL) {\r
return EFI_OUT_OF_RESOURCES;\r
}\r
//\r
*Ptr = 0xB8;\r
Ptr++;\r
Size--;\r
- Addr = (UINT64) 0xCA112EBCCA112EBC;\r
+ Addr = (UINT64) 0xCA112EBCCA112EBCULL;\r
for (I = 0; I < sizeof (Addr); I++) {\r
*Ptr = (UINT8) (UINTN) Addr;\r
Addr >>= 8;\r