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/Core | |
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/Core')
-rw-r--r-- | EdkModulePkg/Core/Dxe/Dispatcher/Dispatcher.c | 10 |
1 files changed, 6 insertions, 4 deletions
diff --git a/EdkModulePkg/Core/Dxe/Dispatcher/Dispatcher.c b/EdkModulePkg/Core/Dxe/Dispatcher/Dispatcher.c index fec794821b..82b776f901 100644 --- a/EdkModulePkg/Core/Dxe/Dispatcher/Dispatcher.c +++ b/EdkModulePkg/Core/Dxe/Dispatcher/Dispatcher.c @@ -1019,11 +1019,13 @@ Returns: if (gDxeCoreLoadedImage->FilePath == NULL) {
if (CompareGuid (&NameGuid, gDxeCoreFileName)) {
//
- // Because mFvDevicePath has been initialized when discoveried
- // EFI_FV_FILETYPE_DRIVER file. So only need to update the name
- // guid of device path.
+ // Maybe One specail Fv cantains only one DXE_CORE module, so its device path must
+ // be initialized completely.
//
- CopyGuid (&mFvDevicePath.File.NameGuid, &NameGuid);
+ EfiInitializeFwVolDevicepathNode (&mFvDevicePath.File, &NameGuid);
+ mFvDevicePath.End.Type = EFI_END_ENTIRE_DEVICE_PATH;
+ mFvDevicePath.End.SubType = END_ENTIRE_DEVICE_PATH_SUBTYPE;
+ SetDevicePathNodeLength (&mFvDevicePath.End, sizeof (EFI_DEVICE_PATH_PROTOCOL));
gDxeCoreLoadedImage->FilePath = CoreDuplicateDevicePath (
(EFI_DEVICE_PATH_PROTOCOL *)&mFvDevicePath
|