]> git.proxmox.com Git - mirror_edk2.git/commitdiff
Fix a bug which does not run PeiCore from memory after shadowing it.
authorqwang12 <qwang12@6f19259b-4bc3-4df7-8a09-765794883524>
Fri, 19 Oct 2007 11:56:20 +0000 (11:56 +0000)
committerqwang12 <qwang12@6f19259b-4bc3-4df7-8a09-765794883524>
Fri, 19 Oct 2007 11:56:20 +0000 (11:56 +0000)
git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@4186 6f19259b-4bc3-4df7-8a09-765794883524

MdeModulePkg/Core/Pei/Dispatcher/Dispatcher.c

index 6923181475a549a9e235f8cbffab26b978e517d4..fd4778fdc7b108f295818453087c65ec110add89 100644 (file)
@@ -445,7 +445,7 @@ Returns:
 \r
               PeiSwitchStacks (\r
                 InvokePeiCore,\r
-                (VOID*) (UINTN) PeiCore,\r
+                (VOID*) ((UINTN) EntryPoint + ((UINTN) PeiCore - (UINTN) _ModuleEntryPoint)),\r
                 (VOID*) &PeiCoreParameters,  \r
                 TopOfStack,\r
                 (VOID*)(UINTN)Private->StackBase\r