diff options
author | klu2 <klu2@6f19259b-4bc3-4df7-8a09-765794883524> | 2008-05-05 06:50:12 +0000 |
---|---|---|
committer | klu2 <klu2@6f19259b-4bc3-4df7-8a09-765794883524> | 2008-05-05 06:50:12 +0000 |
commit | be768885bfe481e6f0b89a5b0b6bccf357b2a8e5 (patch) | |
tree | 43a1092fc7576cc9a84385fe4e71b44ceb5b168d /DuetPkg/FvbRuntimeService/FWBlockService.c | |
parent | 10590588cce553a3d8d304974982845682cbce5b (diff) | |
download | edk2-be768885bfe481e6f0b89a5b0b6bccf357b2a8e5.zip edk2-be768885bfe481e6f0b89a5b0b6bccf357b2a8e5.tar.gz edk2-be768885bfe481e6f0b89a5b0b6bccf357b2a8e5.tar.bz2 |
Fix many bugs in DUET package and now DUET package is enabled for floppy successful.
git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@5158 6f19259b-4bc3-4df7-8a09-765794883524
Diffstat (limited to 'DuetPkg/FvbRuntimeService/FWBlockService.c')
-rw-r--r-- | DuetPkg/FvbRuntimeService/FWBlockService.c | 18 |
1 files changed, 6 insertions, 12 deletions
diff --git a/DuetPkg/FvbRuntimeService/FWBlockService.c b/DuetPkg/FvbRuntimeService/FWBlockService.c index e4dab63..6f46bfc 100644 --- a/DuetPkg/FvbRuntimeService/FWBlockService.c +++ b/DuetPkg/FvbRuntimeService/FWBlockService.c @@ -1380,13 +1380,13 @@ GetFvbHeader ( TRY_ASSIGN (Offset, FlashMapEntry->Offset);
DEBUG ((
- EFI_D_ERROR,
+ EFI_D_INFO,
"FlashMap HOB: BaseAddress = 0x%x, Length = 0x%x, ActuralLength = 0x%x, Offset = 0x%x\n",
(UINTN) FlashMapSubEntry->Base, (UINTN) FlashMapSubEntry->Length,
(UINTN) FlashMapEntry->ActuralSize, (UINTN) FlashMapEntry->Offset
));
DEBUG ((
- EFI_D_ERROR,
+ EFI_D_INFO,
"FlashMap HOB: VolumeId = 0x%lx, MappedFile = %s\n",
(UINTN) FlashMapEntry->VolumeId, (UINTN) FlashMapEntry->FilePath
));
@@ -1548,7 +1548,6 @@ Returns: EFI_STATUS Status;
EFI_FW_VOL_INSTANCE *FwhInstance;
EFI_FIRMWARE_VOLUME_HEADER *FwVolHeader;
- VOID *HobList;
EFI_PEI_HOB_POINTERS FirmwareVolumeHobList;
UINT32 BufferSize;
EFI_FV_BLOCK_MAP_ENTRY *PtrBlockMapEntry;
@@ -1569,12 +1568,6 @@ Returns: UINTN HeaderLength;
BOOLEAN InstallSfsNotify;
- Status = EfiGetSystemConfigurationTable (&gEfiHobListGuid, &HobList);
- //
- // No FV HOBs found
- //
- ASSERT_EFI_ERROR (Status);
-
HeaderLength = 0;
InstallSfsNotify = FALSE;
@@ -1644,7 +1637,7 @@ Returns: if (!FwVolHeader) {
continue;
}
-
+
CopyMem ((UINTN *) &(FwhInstance->VolumeHeader), (UINTN *) FwVolHeader, FwVolHeader->HeaderLength);
FwVolHeader = &(FwhInstance->VolumeHeader);
@@ -1665,11 +1658,12 @@ Returns: FwhInstance->MappedFile[0] = L'\0';
}
-
+ DEBUG ((EFI_D_INFO, "FirmVolume Found! BaseAddress=0x%lx, VolumeId=0x%x, MappedFile=%s, Size=0x%x\n",
+ (UINTN) BaseAddress, VolumeId, MappedFile, ActuralSize));
//
// We may expose readonly FVB in future.
//
- FwhInstance->WriteEnabled = TRUE;
+ FwhInstance->WriteEnabled = TRUE; // Ken: Why enable write?
EfiInitializeLock (&(FwhInstance->FvbDevLock), TPL_HIGH_LEVEL);
LbaAddress = (UINTN) FwhInstance->FvBase[0];
|