Changeset 58179 in vbox
- Timestamp:
- Oct 12, 2015 12:04:16 PM (9 years ago)
- Location:
- trunk/src/VBox/Devices/EFI/Firmware
- Files:
-
- 1 deleted
- 11 edited
- 1 copied
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Devices/EFI/Firmware/Config.kmk
r58175 r58179 149 149 MdeModulePkg/Universal/DevicePathDxe/DevicePathDxe/$(VBOX_EFI_DEBUG_DIR)/DevicePathDxe \ 150 150 MdeModulePkg/Universal/Disk/DiskIoDxe/DiskIoDxe/$(VBOX_EFI_DEBUG_DIR)/DiskIoDxe \ 151 MdeModulePkg/Universal/Disk/PartitionDxe/PartitionDxe/$(VBOX_EFI_DEBUG_DIR)/PartitionDxe \ 151 152 MdeModulePkg/Universal/Disk/UnicodeCollation/EnglishDxe/EnglishDxe/$(VBOX_EFI_DEBUG_DIR)/EnglishDxe \ 152 153 MdeModulePkg/Universal/EbcDxe/EbcDxe/$(VBOX_EFI_DEBUG_DIR)/EbcDxe \ … … 179 180 UefiCpuPkg/CpuDxe/CpuDxe/$(VBOX_EFI_DEBUG_DIR)/CpuDxe \ 180 181 UefiCpuPkg/CpuIo2Dxe/CpuIo2Dxe/$(VBOX_EFI_DEBUG_DIR)/CpuIo2Dxe \ 181 VBoxPkg/PartitionDxe/PartitionDxe/$(VBOX_EFI_DEBUG_DIR)/PartitionDxe \182 182 OvmfPkg/PlatformPei/PlatformPei/$(VBOX_EFI_DEBUG_DIR)/PlatformPei \ 183 183 VBoxPkg/VBoxAppleSim/VBoxAppleSim/$(VBOX_EFI_DEBUG_DIR)/VBoxAppleSim \ -
trunk/src/VBox/Devices/EFI/Firmware/MdeModulePkg/Universal/Disk/PartitionDxe/ElTorito.c
r48674 r58179 60 60 UINT32 VolSpaceSize; 61 61 62 #ifdef VBOX 63 VBoxLogFlowFuncMarkDP(DevicePath); 64 #endif 62 65 Found = EFI_NOT_FOUND; 63 66 Media = BlockIo->Media; -
trunk/src/VBox/Devices/EFI/Firmware/MdeModulePkg/Universal/Disk/PartitionDxe/Gpt.c
r48674 r58179 195 195 UINT32 MediaId; 196 196 197 #ifdef VBOX 198 VBoxLogFlowFuncMarkDP(DevicePath); 199 #endif 197 200 ProtectiveMbr = NULL; 198 201 PrimaryHeader = NULL; -
trunk/src/VBox/Devices/EFI/Firmware/MdeModulePkg/Universal/Disk/PartitionDxe/Mbr.c
r48674 r58179 144 144 LastBlock = BlockIo->Media->LastBlock; 145 145 146 #ifdef VBOX 147 VBoxLogFlowFuncMarkDP(DevicePath); 148 #endif 146 149 Mbr = AllocatePool (BlockSize); 147 150 if (Mbr == NULL) { -
trunk/src/VBox/Devices/EFI/Firmware/MdeModulePkg/Universal/Disk/PartitionDxe/Partition.c
r48674 r58179 43 43 // 44 44 PARTITION_DETECT_ROUTINE mPartitionDetectRoutineTable[] = { 45 #ifdef VBOX 46 PartitionInstallAppleChildHandles, 47 #endif 45 48 PartitionInstallGptChildHandles, 46 49 PartitionInstallElToritoChildHandles, … … 76 79 EFI_DISK_IO_PROTOCOL *DiskIo; 77 80 EFI_DEV_PATH *Node; 81 #ifdef VBOX 82 VBoxLogFlowFuncEnter(); 83 #endif 78 84 79 85 // … … 85 91 // if yes, go on checking other conditions 86 92 // 93 #ifdef VBOX 94 VBoxLogFlowFuncMarkDP(RemainingDevicePath); 95 #endif 87 96 if (!IsDevicePathEnd (RemainingDevicePath)) { 88 97 // … … 91 100 // 92 101 Node = (EFI_DEV_PATH *) RemainingDevicePath; 102 #ifndef VBOX 93 103 if (Node->DevPath.Type != MEDIA_DEVICE_PATH || 94 104 Node->DevPath.SubType != MEDIA_HARDDRIVE_DP || … … 96 106 return EFI_UNSUPPORTED; 97 107 } 108 #else 109 if ( Node->DevPath.Type != MEDIA_DEVICE_PATH 110 || Node->DevPath.SubType != MEDIA_HARDDRIVE_DP 111 || DevicePathNodeLength (&Node->DevPath) != sizeof (HARDDRIVE_DEVICE_PATH) 112 || Node->DevPath.Type != MESSAGING_DEVICE_PATH 113 || Node->DevPath.SubType != MSG_SATA_DP) { 114 VBoxLogFlowFuncLeaveRC(EFI_UNSUPPORTED); 115 return EFI_UNSUPPORTED; 116 } 117 #endif 98 118 } 99 119 } … … 111 131 ); 112 132 if (Status == EFI_ALREADY_STARTED) { 133 #ifdef VBOX 134 VBoxLogFlowFuncLeaveRC(EFI_SUCCESS); 135 #endif 113 136 return EFI_SUCCESS; 114 137 } 115 138 if (EFI_ERROR (Status)) { 139 #ifdef VBOX 140 VBoxLogFlowFuncLeaveRC(Status); 141 #endif 116 142 return Status; 117 143 } … … 138 164 ); 139 165 if (Status == EFI_ALREADY_STARTED) { 166 #ifdef VBOX 167 VBoxLogFlowFuncMarkDP(ParentDevicePath); 168 #endif 140 169 return EFI_SUCCESS; 141 170 } 142 171 143 172 if (EFI_ERROR (Status)) { 173 #ifdef VBOX 174 VBoxLogFlowFuncLeaveRC(Status); 175 #endif 144 176 return Status; 145 177 } … … 167 199 ); 168 200 if (EFI_ERROR (Status)) { 201 #ifdef VBOX 202 VBoxLogFlowFuncLeaveRC(Status); 203 #endif 169 204 return Status; 170 205 } 171 206 207 #ifdef VBOX 208 VBoxLogFlowFuncLeaveRC(EFI_SUCCESS); 209 #endif 172 210 return EFI_SUCCESS; 173 211 } … … 205 243 BOOLEAN MediaPresent; 206 244 EFI_TPL OldTpl; 245 #ifdef VBOX 246 int idxRoutine = 0; 247 248 VBoxLogFlowFuncEnter(); 249 #endif 207 250 208 251 BlockIo2 = NULL; … … 235 278 ); 236 279 if (EFI_ERROR (Status)) { 280 #ifdef VBOX 281 VBoxLogFlowFuncMarkRC(Status); 282 #endif 237 283 goto Exit; 238 284 } … … 259 305 ); 260 306 if (EFI_ERROR (Status) && Status != EFI_ALREADY_STARTED) { 307 #ifdef VBOX 308 VBoxLogFlowFuncMarkRC(Status); 309 #endif 261 310 goto Exit; 262 311 } … … 277 326 ControllerHandle 278 327 ); 328 #ifdef VBOX 329 VBoxLogFlowFuncMarkRC(Status); 330 #endif 279 331 goto Exit; 280 332 } … … 304 356 ParentDevicePath 305 357 ); 358 #ifdef VBOX 359 VBoxLogFlowFuncMarkRC(Status); 360 #endif 306 361 if (!EFI_ERROR (Status) || Status == EFI_MEDIA_CHANGED || Status == EFI_NO_MEDIA) { 362 #ifdef VBOX 363 VBoxLogFlowFuncMarkVar(idxRoutine, "%d"); 364 #endif 307 365 break; 308 366 } 309 367 Routine++; 368 #ifdef VBOX 369 idxRoutine++; 370 #endif 310 371 } 311 372 } … … 352 413 Exit: 353 414 gBS->RestoreTPL (OldTpl); 415 #ifdef VBOX 416 VBoxLogFlowFuncLeaveRC(Status); 417 #endif 354 418 return Status; 355 419 } -
trunk/src/VBox/Devices/EFI/Firmware/MdeModulePkg/Universal/Disk/PartitionDxe/Partition.h
r48674 r58179 414 414 ); 415 415 416 typedef 417 EFI_STATUS 418 (*PARTITION_DETECT_ROUTINE) ( 416 #ifdef VBOX 417 /** 418 Install child handles if the Handle supports Apple format. 419 420 @param This Calling context. 421 @param Handle Parent Handle. 422 @param DiskIo Parent DiskIo interface. 423 @param BlockIo Parent BlockIo interface. 424 @param[in] BlockIo2 Parent BlockIo2 interface. 425 @param DevicePath Parent Device Path. 426 427 @retval EFI_SUCCESS A child handle was added. 428 @retval EFI_MEDIA_CHANGED Media change was detected. 429 @retval Others Apple partition was not found. 430 431 **/ 432 EFI_STATUS 433 PartitionInstallAppleChildHandles ( 419 434 IN EFI_DRIVER_BINDING_PROTOCOL *This, 420 435 IN EFI_HANDLE Handle, … … 424 439 IN EFI_DEVICE_PATH_PROTOCOL *DevicePath 425 440 ); 426 427 441 #endif 442 443 typedef 444 EFI_STATUS 445 (*PARTITION_DETECT_ROUTINE) ( 446 IN EFI_DRIVER_BINDING_PROTOCOL *This, 447 IN EFI_HANDLE Handle, 448 IN EFI_DISK_IO_PROTOCOL *DiskIo, 449 IN EFI_BLOCK_IO_PROTOCOL *BlockIo, 450 IN EFI_BLOCK_IO2_PROTOCOL *BlockIo2, 451 IN EFI_DEVICE_PATH_PROTOCOL *DevicePath 452 ); 453 454 #endif -
trunk/src/VBox/Devices/EFI/Firmware/MdeModulePkg/Universal/Disk/PartitionDxe/PartitionDxe.inf
r48674 r58179 42 42 Gpt.c 43 43 ElTorito.c 44 Apple.c # VBox specific 44 45 Partition.c 45 46 Partition.h -
trunk/src/VBox/Devices/EFI/Firmware/OvmfPkg/OvmfPkgIa32.dsc
r58175 r58179 415 415 MdeModulePkg/Universal/PrintDxe/PrintDxe.inf 416 416 MdeModulePkg/Universal/Disk/DiskIoDxe/DiskIoDxe.inf 417 !ifndef $(VBOX)418 417 MdeModulePkg/Universal/Disk/PartitionDxe/PartitionDxe.inf 419 !else420 VBoxPkg/PartitionDxe/PartitionDxe.inf421 !endif422 418 MdeModulePkg/Universal/Disk/UnicodeCollation/EnglishDxe/EnglishDxe.inf 423 419 MdeModulePkg/Bus/Scsi/ScsiBusDxe/ScsiBusDxe.inf -
trunk/src/VBox/Devices/EFI/Firmware/OvmfPkg/OvmfPkgIa32.fdf
r58175 r58179 186 186 INF MdeModulePkg/Universal/PrintDxe/PrintDxe.inf 187 187 INF MdeModulePkg/Universal/Disk/DiskIoDxe/DiskIoDxe.inf 188 !ifndef $(VBOX)189 188 INF MdeModulePkg/Universal/Disk/PartitionDxe/PartitionDxe.inf 190 !else191 INF VBoxPkg/PartitionDxe/PartitionDxe.inf192 !endif193 189 INF MdeModulePkg/Universal/Disk/UnicodeCollation/EnglishDxe/EnglishDxe.inf 194 190 INF MdeModulePkg/Bus/Scsi/ScsiBusDxe/ScsiBusDxe.inf -
trunk/src/VBox/Devices/EFI/Firmware/OvmfPkg/OvmfPkgX64.dsc
r58175 r58179 415 415 MdeModulePkg/Universal/PrintDxe/PrintDxe.inf 416 416 MdeModulePkg/Universal/Disk/DiskIoDxe/DiskIoDxe.inf 417 !ifndef $(VBOX)418 417 MdeModulePkg/Universal/Disk/PartitionDxe/PartitionDxe.inf 419 !else420 VBoxPkg/PartitionDxe/PartitionDxe.inf421 !endif422 418 MdeModulePkg/Universal/Disk/UnicodeCollation/EnglishDxe/EnglishDxe.inf 423 419 MdeModulePkg/Bus/Scsi/ScsiBusDxe/ScsiBusDxe.inf -
trunk/src/VBox/Devices/EFI/Firmware/OvmfPkg/OvmfPkgX64.fdf
r58175 r58179 184 184 INF MdeModulePkg/Universal/PrintDxe/PrintDxe.inf 185 185 INF MdeModulePkg/Universal/Disk/DiskIoDxe/DiskIoDxe.inf 186 !ifndef $(VBOX)187 186 INF MdeModulePkg/Universal/Disk/PartitionDxe/PartitionDxe.inf 188 !else189 INF VBoxPkg/PartitionDxe/PartitionDxe.inf190 !endif191 187 INF MdeModulePkg/Universal/Disk/UnicodeCollation/EnglishDxe/EnglishDxe.inf 192 188 INF MdeModulePkg/Bus/Scsi/ScsiBusDxe/ScsiBusDxe.inf
Note:
See TracChangeset
for help on using the changeset viewer.