summaryrefslogtreecommitdiff
path: root/MdeModulePkg
diff options
context:
space:
mode:
authorqwang12 <qwang12@6f19259b-4bc3-4df7-8a09-765794883524>2007-10-19 11:56:20 +0000
committerqwang12 <qwang12@6f19259b-4bc3-4df7-8a09-765794883524>2007-10-19 11:56:20 +0000
commite83327a80cbdcb0d7eae716575daae3d9b33651b (patch)
tree1a3ac3efca919110d7998116b3b7a272cecf7eb9 /MdeModulePkg
parent2062f2b3f3cf6f0bdecf5a19d5090d94b8ee3067 (diff)
downloadedk2-e83327a80cbdcb0d7eae716575daae3d9b33651b.zip
edk2-e83327a80cbdcb0d7eae716575daae3d9b33651b.tar.gz
edk2-e83327a80cbdcb0d7eae716575daae3d9b33651b.tar.bz2
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
Diffstat (limited to 'MdeModulePkg')
-rw-r--r--MdeModulePkg/Core/Pei/Dispatcher/Dispatcher.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/MdeModulePkg/Core/Pei/Dispatcher/Dispatcher.c b/MdeModulePkg/Core/Pei/Dispatcher/Dispatcher.c
index 6923181..fd4778f 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