VirtualBox

Ignore:
Timestamp:
Apr 14, 2023 3:17:44 PM (2 years ago)
Author:
vboxsync
svn:sync-xref-src-repo-rev:
156854
Message:

Devices/EFI/FirmwareNew: Update to edk2-stable202302 and make it build, bugref:4643

Location:
trunk/src/VBox/Devices/EFI/FirmwareNew
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Devices/EFI/FirmwareNew

  • trunk/src/VBox/Devices/EFI/FirmwareNew/OvmfPkg/Library/ResetSystemLib/BaseResetShutdown.c

    r85718 r99404  
    2929  )
    3030{
    31   UINT16 AcpiPmBaseAddress;
    32   UINT16 HostBridgeDevId;
     31  UINT16  AcpiPmBaseAddress;
     32  UINT16  HostBridgeDevId;
    3333
    3434  AcpiPmBaseAddress = 0;
    35   HostBridgeDevId = PciRead16 (OVMF_HOSTBRIDGE_DID);
     35  HostBridgeDevId   = PciRead16 (OVMF_HOSTBRIDGE_DID);
    3636  switch (HostBridgeDevId) {
    37   case INTEL_82441_DEVICE_ID:
    38     AcpiPmBaseAddress = PIIX4_PMBA_VALUE;
    39     break;
    40   case INTEL_Q35_MCH_DEVICE_ID:
    41     AcpiPmBaseAddress = ICH9_PMBASE_VALUE;
    42     break;
    43   default:
    44     ASSERT (FALSE);
    45     CpuDeadLoop ();
     37    case INTEL_82441_DEVICE_ID:
     38      AcpiPmBaseAddress = PIIX4_PMBA_VALUE;
     39      break;
     40    case INTEL_Q35_MCH_DEVICE_ID:
     41      AcpiPmBaseAddress = ICH9_PMBASE_VALUE;
     42      break;
     43    case CLOUDHV_DEVICE_ID:
     44      IoWrite8 (CLOUDHV_ACPI_SHUTDOWN_IO_ADDRESS, 5 << 2 | 1 << 5);
     45      CpuDeadLoop ();
     46    default:
     47      ASSERT (FALSE);
     48      CpuDeadLoop ();
    4649  }
    4750
Note: See TracChangeset for help on using the changeset viewer.

© 2025 Oracle Support Privacy / Do Not Sell My Info Terms of Use Trademark Policy Automated Access Etiquette