VirtualBox

Ignore:
Timestamp:
Aug 14, 2024 1:16:30 PM (9 months ago)
Author:
vboxsync
svn:sync-xref-src-repo-rev:
164367
Message:

Devices/EFI/FirmwareNew: Merge edk2-stable-202405 and make it build on aarch64, 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/MdeModulePkg/Universal/SmbiosDxe/SmbiosDxe.c

    r101291 r105670  
    10731073    EntryPointStructureData.MajorVersion      = mPrivateData.Smbios.MajorVersion;
    10741074    EntryPointStructureData.MinorVersion      = mPrivateData.Smbios.MinorVersion;
    1075     EntryPointStructureData.SmbiosBcdRevision = (UINT8)((PcdGet16 (PcdSmbiosVersion) >> 4) & 0xf0) | (UINT8)(PcdGet16 (PcdSmbiosVersion) & 0x0f);
    1076     PhysicalAddress                           = 0xffffffff;
    1077     Status                                    = gBS->AllocatePages (
    1078                                                        AllocateMaxAddress,
    1079                                                        EfiRuntimeServicesData,
    1080                                                        EFI_SIZE_TO_PAGES (sizeof (SMBIOS_TABLE_ENTRY_POINT)),
    1081                                                        &PhysicalAddress
    1082                                                        );
     1075    EntryPointStructureData.SmbiosBcdRevision = 0;
     1076    if ((mPrivateData.Smbios.MajorVersion <= 9) && (mPrivateData.Smbios.MinorVersion <= 9)) {
     1077      EntryPointStructureData.SmbiosBcdRevision = ((mPrivateData.Smbios.MajorVersion & 0x0f) << 4) | (mPrivateData.Smbios.MinorVersion & 0x0f);
     1078    }
     1079
     1080    PhysicalAddress = 0xffffffff;
     1081    Status          = gBS->AllocatePages (
     1082                             AllocateMaxAddress,
     1083                             EfiRuntimeServicesData,
     1084                             EFI_SIZE_TO_PAGES (sizeof (SMBIOS_TABLE_ENTRY_POINT)),
     1085                             &PhysicalAddress
     1086                             );
    10831087    if (EFI_ERROR (Status)) {
    10841088      DEBUG ((DEBUG_ERROR, "SmbiosCreateTable () could not allocate EntryPointStructure < 4GB\n"));
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