The EfiLdr image may be overwritten later in the boot process.
This can lead to the Handoff structure being corrupted before
DxeIpl is finished with it.
To help prevent this, we move the Handoff structure to the
stack, and in DxeIpl make a copy of it.
git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@10950
6f19259b-4bc3-4df7-8a09-
765794883524
VOID *MemoryDescriptor;\r
VOID *NvStorageBase;\r
CHAR8 PrintBuffer[256];\r
- \r
+ EFILDRHANDOFF HandoffCopy;\r
+\r
+ CopyMem ((VOID*) &HandoffCopy, (VOID*) Handoff, sizeof (EFILDRHANDOFF));\r
+ Handoff = &HandoffCopy;\r
+\r
ClearScreen();\r
PrintString("Enter DxeIpl ...\n");\r
\r
UINTN BfvBase;\r
EFI_MAIN_ENTRYPOINT EfiMainEntrypoint;\r
CHAR8 PrintBuffer[256];\r
- STATIC EFILDRHANDOFF Handoff;\r
+ EFILDRHANDOFF Handoff;\r
\r
ClearScreen();\r
\r