diff options
author | lgao4 <lgao4@6f19259b-4bc3-4df7-8a09-765794883524> | 2006-06-21 02:59:51 +0000 |
---|---|---|
committer | lgao4 <lgao4@6f19259b-4bc3-4df7-8a09-765794883524> | 2006-06-21 02:59:51 +0000 |
commit | 8aeaf59524ad5d40b559b752c4a1cf78e0b8097b (patch) | |
tree | 2b2e860f4bcc0d41406f28b7a0698b33a77acb2f /EdkModulePkg/Library | |
parent | 687e98f726bf35b235d7ea91f0d9ca119e82f904 (diff) | |
download | edk2-platforms-8aeaf59524ad5d40b559b752c4a1cf78e0b8097b.tar.xz |
Fix bug in DxeMain module and EdkMemoryStatusCodeLib library.
git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@581 6f19259b-4bc3-4df7-8a09-765794883524
Diffstat (limited to 'EdkModulePkg/Library')
-rw-r--r-- | EdkModulePkg/Library/EdkMemoryStatusCodeLib/EdkMemoryStatusCodeLib.msa | 1 | ||||
-rw-r--r-- | EdkModulePkg/Library/EdkMemoryStatusCodeLib/MemoryStatusCode.c | 2 |
2 files changed, 2 insertions, 1 deletions
diff --git a/EdkModulePkg/Library/EdkMemoryStatusCodeLib/EdkMemoryStatusCodeLib.msa b/EdkModulePkg/Library/EdkMemoryStatusCodeLib/EdkMemoryStatusCodeLib.msa index 7d60671c90..ac6a6dd49e 100644 --- a/EdkModulePkg/Library/EdkMemoryStatusCodeLib/EdkMemoryStatusCodeLib.msa +++ b/EdkModulePkg/Library/EdkMemoryStatusCodeLib/EdkMemoryStatusCodeLib.msa @@ -39,6 +39,7 @@ WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED. <LibraryClass Usage="ALWAYS_CONSUMED">PeiServicesLib</LibraryClass>
<LibraryClass Usage="ALWAYS_CONSUMED">PeiServicesTablePointerLib</LibraryClass>
<LibraryClass Usage="ALWAYS_CONSUMED">BaseMemoryLib</LibraryClass>
+ <LibraryClass Usage="ALWAYS_CONSUMED">PeimEntryPoint</LibraryClass>
</LibraryClassDefinitions>
<SourceFiles>
<Filename>MemoryStatusCode.c</Filename>
diff --git a/EdkModulePkg/Library/EdkMemoryStatusCodeLib/MemoryStatusCode.c b/EdkModulePkg/Library/EdkMemoryStatusCodeLib/MemoryStatusCode.c index 087ef53aea..45a322b89d 100644 --- a/EdkModulePkg/Library/EdkMemoryStatusCodeLib/MemoryStatusCode.c +++ b/EdkModulePkg/Library/EdkMemoryStatusCodeLib/MemoryStatusCode.c @@ -486,7 +486,7 @@ Returns: #ifdef EFI_NT_EMULATOR
gRunningFromMemory = TRUE;
#else
- * (BOOLEAN *) ((UINTN) &gRunningFromMemory + (UINTN) EntryPoint - (UINTN) InstallMonoStatusCode) = TRUE;
+ * (BOOLEAN *) ((UINTN) &gRunningFromMemory + (UINTN) EntryPoint - (UINTN) _ModuleEntryPoint) = TRUE;
#endif
Status = ((EFI_PEIM_ENTRY_POINT )(UINTN) EntryPoint) (PrivateData->FfsHeader, PeiServices);
if (EFI_ERROR (Status)) {
|