From e83327a80cbdcb0d7eae716575daae3d9b33651b Mon Sep 17 00:00:00 2001 From: qwang12 Date: Fri, 19 Oct 2007 11:56:20 +0000 Subject: [PATCH] Fix a bug which does not run PeiCore from memory after shadowing it. git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@4186 6f19259b-4bc3-4df7-8a09-765794883524 --- MdeModulePkg/Core/Pei/Dispatcher/Dispatcher.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/MdeModulePkg/Core/Pei/Dispatcher/Dispatcher.c b/MdeModulePkg/Core/Pei/Dispatcher/Dispatcher.c index 6923181475..fd4778fdc7 100644 --- a/MdeModulePkg/Core/Pei/Dispatcher/Dispatcher.c +++ b/MdeModulePkg/Core/Pei/Dispatcher/Dispatcher.c @@ -445,7 +445,7 @@ Returns: PeiSwitchStacks ( InvokePeiCore, - (VOID*) (UINTN) PeiCore, + (VOID*) ((UINTN) EntryPoint + ((UINTN) PeiCore - (UINTN) _ModuleEntryPoint)), (VOID*) &PeiCoreParameters, TopOfStack, (VOID*)(UINTN)Private->StackBase