Changeset 77672 in vbox
- Timestamp:
- Mar 13, 2019 8:25:50 AM (6 years ago)
- svn:sync-xref-src-repo-rev:
- 129308
- Location:
- trunk/src/VBox/Devices/EFI/FirmwareNew
- Files:
-
- 9 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Devices/EFI/FirmwareNew/IntelFrameworkModulePkg/Library/GenericBdsLib/BdsConsole.c
r77662 r77672 217 217 VBoxLogFlowFuncEnter(); 218 218 VBoxLogFlowFuncMarkVar(ConVarName, "%s"); 219 VBoxLogFlowFuncMarkDP(CustomizedConDevicePath);220 VBoxLogFlowFuncMarkDP(ExclusiveDevicePath);221 219 VarConsole = NULL; 222 220 DevicePathSize = 0; -
trunk/src/VBox/Devices/EFI/FirmwareNew/MdeModulePkg/Universal/Disk/PartitionDxe/Apple.c
r77669 r77672 108 108 EFI_PARTITION_INFO_PROTOCOL PartitionInfo; 109 109 110 VBoxLogFlowFunc MarkDP(DevicePath);110 VBoxLogFlowFuncEnter(); 111 111 Found = EFI_NOT_FOUND; 112 112 Media = BlockIo->Media; -
trunk/src/VBox/Devices/EFI/FirmwareNew/MdeModulePkg/Universal/Disk/PartitionDxe/ElTorito.c
r77662 r77672 63 63 EFI_PARTITION_INFO_PROTOCOL PartitionInfo; 64 64 65 #ifdef VBOX66 VBoxLogFlowFuncMarkDP(DevicePath);67 #endif68 65 Found = EFI_NOT_FOUND; 69 66 Media = BlockIo->Media; -
trunk/src/VBox/Devices/EFI/FirmwareNew/MdeModulePkg/Universal/Disk/PartitionDxe/Gpt.c
r77662 r77672 221 221 EFI_PARTITION_INFO_PROTOCOL PartitionInfo; 222 222 223 #ifdef VBOX224 VBoxLogFlowFuncMarkDP(DevicePath);225 #endif226 223 ProtectiveMbr = NULL; 227 224 PrimaryHeader = NULL; -
trunk/src/VBox/Devices/EFI/FirmwareNew/MdeModulePkg/Universal/Disk/PartitionDxe/Mbr.c
r77669 r77672 150 150 LastBlock = BlockIo->Media->LastBlock; 151 151 152 #ifdef VBOX153 VBoxLogFlowFuncMarkDP(DevicePath);154 #endif155 152 Mbr = AllocatePool (BlockSize); 156 153 if (Mbr == NULL) { … … 232 229 ZeroMem (&PartitionInfo, sizeof (EFI_PARTITION_INFO_PROTOCOL)); 233 230 PartitionInfo.Revision = EFI_PARTITION_INFO_PROTOCOL_REVISION; 234 PartitionInfo.Type = PARTITION_TYPE_OTHER; 231 PartitionInfo.Type = PARTITION_TYPE_MBR; 232 if (Mbr->Partition[Index].OSIndicator == EFI_PARTITION) { 233 PartitionInfo.System = 1; 234 } 235 CopyMem (&PartitionInfo.Info.Mbr, &Mbr->Partition[Index], sizeof (MBR_PARTITION_RECORD)); 235 236 236 237 Status = PartitionInstallChildHandle ( -
trunk/src/VBox/Devices/EFI/FirmwareNew/MdeModulePkg/Universal/Disk/PartitionDxe/Partition.c
r77662 r77672 91 91 // if yes, go on checking other conditions 92 92 // 93 #ifdef VBOX94 VBoxLogFlowFuncMarkDP(RemainingDevicePath);95 #endif96 93 if (!IsDevicePathEnd (RemainingDevicePath)) { 97 94 // … … 164 161 ); 165 162 if (Status == EFI_ALREADY_STARTED) { 166 #ifdef VBOX167 VBoxLogFlowFuncMarkDP(ParentDevicePath);168 #endif169 163 return EFI_SUCCESS; 170 164 } -
trunk/src/VBox/Devices/EFI/FirmwareNew/MdePkg/Include/Library/DebugLib.h
r77662 r77672 528 528 529 529 #if defined(VBOX) 530 # ifdef __EFI_DEVICE_PATH_PROTOCOL_H__531 CHAR16 *VBoxDebugDevicePath2Str(IN EFI_DEVICE_PATH_PROTOCOL *pDevicePath);532 CHAR16 *VBoxDebugHandleDevicePath2Str(IN EFI_HANDLE hHandle);533 # endif534 530 VOID EFIAPI VBoxLogWorker(const char *pszFormat, ...); 535 531 … … 554 550 VBoxLog(("%a:" VBOX_XSTR(__LINE__) ": " #rc "=0x%x (%r)\n", __FUNCTION__, rcLog, rcLog)); \ 555 551 } while (0) 556 # define VBoxLogFlowFuncMarkDP(dp) \557 VBoxLog(("%a:" VBOX_XSTR(__LINE__) ": " #dp "=%s\n", __FUNCTION__, VBoxDebugDevicePath2Str(dp)))558 # define VBoxLogFlowFuncMarkHandleDP(dp)\559 VBoxLog(("%a:" VBOX_XSTR(__LINE__) ": " #dp "=%s\n", __FUNCTION__, VBoxDebugHandleDevicePath2Str(dp)))560 552 # define VBoxLog(a) VBoxLogWorker a 561 553 # else /* !EFI_LOG_ENABLED */ … … 566 558 # define VBoxLogFlowFuncMarkVar(var, varfmt) do {} while (0) 567 559 # define VBoxLogFlowFuncMarkRC(rc) do {} while (0) 568 # define VBoxLogFlowFuncMarkDP(dp) do {} while (0)569 # define VBoxLogLogFlowFuncMarkHandleDP(dp) do {} while (0)570 560 # define VBoxLog(a) do {} while (0) 571 561 # endif /* !EFI_LOG_ENABLED */ -
trunk/src/VBox/Devices/EFI/FirmwareNew/VBoxPkg/Library/VBoxDebugLib/VBoxDebugLib.c
r76553 r77672 42 42 #include "iprt/asm.h" 43 43 44 #if 045 static EFI_DEVICE_PATH_TO_TEXT_PROTOCOL *g_DevPath2Txt;46 #endif47 48 44 49 45 VOID EFIAPI … … 168 164 VBoxPanicMsgString("\nLine: "); 169 165 VBoxPanicMsgDecimalU32((uint32_t)LineNumber); 170 VBoxPanicMsgString("\n EDescription: ");166 VBoxPanicMsgString("\nDescription: "); 171 167 VBoxPanicMsgString(Description ? Description : "<NULL>"); 172 168 ASMOutU8(EFI_PANIC_PORT, EFI_PANIC_CMD_END_MSG); … … 175 171 } 176 172 177 CHAR16 *VBoxDebugDevicePath2Str(IN EFI_DEVICE_PATH_PROTOCOL *pDevicePath)178 {179 #if 0180 EFI_STATUS rc;181 if (!g_DevPath2Txt)182 {183 rc = gBS->LocateProtocol(&gEfiDevicePathToTextProtocolGuid, NULL, (VOID **)&g_DevPath2Txt);184 if (EFI_ERROR(rc))185 {186 DEBUG((DEBUG_INFO, "gEfiDevicePathToTextProtocolGuid:%g isn't instantied\n", gEfiDevicePathToTextProtocolGuid));187 return NULL;188 }189 }190 return g_DevPath2Txt->ConvertDevicePathToText(pDevicePath, TRUE, FALSE);191 #else192 return NULL;193 #endif194 }195 196 CHAR16 *VBoxDebugHandleDevicePath2Str(IN EFI_HANDLE hHandle)197 {198 #if 0199 EFI_STATUS rc;200 EFI_DEVICE_PATH_PROTOCOL *pDevicePath = NULL;201 CHAR16 *psz16TxtDevicePath;202 rc = gBS->OpenProtocol(hHandle,203 &gEfiDevicePathProtocolGuid,204 (VOID **)pDevicePath,205 NULL,206 hHandle,207 EFI_OPEN_PROTOCOL_BY_HANDLE_PROTOCOL);208 if (EFI_ERROR(rc))209 {210 DEBUG((DEBUG_INFO, "%a:%d failed(%r) to open Device Path Protocol for Handle %p\n",211 __FUNCTION__,212 __LINE__,213 rc,214 hHandle));215 return NULL;216 }217 psz16TxtDevicePath = VBoxDebugHandleDevicePath2Str(pDevicePath);218 return psz16TxtDevicePath;219 #else220 return NULL;221 #endif222 }223 CHAR16 *VBoxDebugPrintDevicePath(IN EFI_DEVICE_PATH_PROTOCOL *pDevicePath)224 {225 #if 0226 EFI_STATUS rc;227 if (!g_DevPath2Txt)228 {229 rc = gBS->LocateProtocol(&gEfiDevicePathToTextProtocolGuid, NULL, (VOID **)&g_DevPath2Txt);230 if (EFI_ERROR(rc))231 {232 DEBUG((DEBUG_INFO, "gEfiDevicePathToTextProtocolGuid:%g isn't instantied\n", gEfiDevicePathToTextProtocolGuid));233 return NULL;234 }235 }236 return g_DevPath2Txt->ConvertDevicePathToText(pDevicePath, TRUE, FALSE);237 #else238 return NULL;239 #endif240 }241 242 173 243 174 VOID * EFIAPI -
trunk/src/VBox/Devices/EFI/FirmwareNew/VBoxPkg/VBoxFsDxe/fsw_efi.c
r76553 r77672 231 231 // first, open DiskIO 232 232 VBoxLogFlowFuncEnter(); 233 VBoxLogFlowFuncMarkDP(RemainingDevicePath);234 233 235 234 Status = BS->OpenProtocol(ControllerHandle,
Note:
See TracChangeset
for help on using the changeset viewer.