From dcb428da9e2c7e566dbaa4ae2b1e171c1d05283b Mon Sep 17 00:00:00 2001 From: jljusten Date: Sat, 16 Oct 2010 18:51:21 +0000 Subject: DuetPkg: Move EfiLdr Handoff data to stack 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 --- DuetPkg/EfiLdr/EfiLoader.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'DuetPkg/EfiLdr') diff --git a/DuetPkg/EfiLdr/EfiLoader.c b/DuetPkg/EfiLdr/EfiLoader.c index 609e547483..f10db53552 100644 --- a/DuetPkg/EfiLdr/EfiLoader.c +++ b/DuetPkg/EfiLdr/EfiLoader.c @@ -50,7 +50,7 @@ EfiLoader ( UINTN BfvBase; EFI_MAIN_ENTRYPOINT EfiMainEntrypoint; CHAR8 PrintBuffer[256]; - STATIC EFILDRHANDOFF Handoff; + EFILDRHANDOFF Handoff; ClearScreen(); -- cgit v1.2.3