diff options
author | qwang12 <qwang12@6f19259b-4bc3-4df7-8a09-765794883524> | 2007-10-19 11:56:20 +0000 |
---|---|---|
committer | qwang12 <qwang12@6f19259b-4bc3-4df7-8a09-765794883524> | 2007-10-19 11:56:20 +0000 |
commit | e83327a80cbdcb0d7eae716575daae3d9b33651b (patch) | |
tree | 1a3ac3efca919110d7998116b3b7a272cecf7eb9 /MdeModulePkg/Core | |
parent | 2062f2b3f3cf6f0bdecf5a19d5090d94b8ee3067 (diff) | |
download | edk2-platforms-e83327a80cbdcb0d7eae716575daae3d9b33651b.tar.xz |
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/Core')
-rw-r--r-- | MdeModulePkg/Core/Pei/Dispatcher/Dispatcher.c | 2 |
1 files changed, 1 insertions, 1 deletions
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
|