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/IntelFsp2WrapperPkg/Library/SecFspWrapperPlatformSecLibSample/SecRamInitData.c

    r89983 r99404  
    22  Sample to provide TempRamInitParams data.
    33
    4   Copyright (c) 2014 - 2020, Intel Corporation. All rights reserved.<BR>
     4  Copyright (c) 2014 - 2022, Intel Corporation. All rights reserved.<BR>
    55  SPDX-License-Identifier: BSD-2-Clause-Patent
    66
     
    1111
    1212typedef struct {
    13   UINT32                      MicrocodeRegionBase;
    14   UINT32                      MicrocodeRegionSize;
    15   UINT32                      CodeRegionBase;
    16   UINT32                      CodeRegionSize;
     13  EFI_PHYSICAL_ADDRESS    MicrocodeRegionBase;
     14  UINT64                  MicrocodeRegionSize;
     15  EFI_PHYSICAL_ADDRESS    CodeRegionBase;
     16  UINT64                  CodeRegionSize;
    1717} FSPT_CORE_UPD;
    1818
     
    2020  FSP_UPD_HEADER    FspUpdHeader;
    2121  //
    22   // If platform does not support FSP spec 2.2 remove FSPT_ARCH_UPD structure.
     22  // If FSP spec version < 2.2, remove FSPT_ARCH_UPD structure.
     23  // Else If FSP spec version >= 2.2 and FSP spec version < 2.4, use FSPT_ARCH_UPD structure.
     24  // Else, use FSPT_ARCH2_UPD structure.
    2325  //
    24   FSPT_ARCH_UPD     FsptArchUpd;
     26  FSPT_ARCH2_UPD    FsptArchUpd;
    2527  FSPT_CORE_UPD     FsptCoreUpd;
    2628} FSPT_UPD_CORE_DATA;
    2729
    28 GLOBAL_REMOVE_IF_UNREFERENCED CONST FSPT_UPD_CORE_DATA FsptUpdDataPtr = {
     30GLOBAL_REMOVE_IF_UNREFERENCED CONST FSPT_UPD_CORE_DATA  FsptUpdDataPtr = {
    2931  {
    3032    0x4450555F54505346,
     
    3436    0x02,
    3537    { 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
    36       0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00
    37     }
     38      0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00 }
    3839  },
    3940  //
    40   // If platform does not support FSP spec 2.2 remove FSPT_ARCH_UPD structure.
     41  // If FSP spec version < 2.2, remove FSPT_ARCH_UPD structure.
     42  // Else If FSP spec version >= 2.2 and FSP spec version < 2.4, use FSPT_ARCH_UPD structure.
     43  // Else, use FSPT_ARCH2_UPD structure.
    4144  //
    4245  {
    43     0x01,
     46    0x02,
    4447    {
    4548      0x00, 0x00, 0x00
     
    4952    {
    5053      0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
    51       0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00
     54      0x00, 0x00, 0x00, 0x00, 0x00, 0x00
    5255    }
    5356  },
    5457  {
    55     ((UINT32)FixedPcdGet64 (PcdCpuMicrocodePatchAddress) + FixedPcdGet32 (PcdFlashMicrocodeOffset)),
    56     ((UINT32)FixedPcdGet64 (PcdCpuMicrocodePatchRegionSize) - FixedPcdGet32 (PcdFlashMicrocodeOffset)),
     58    FixedPcdGet32 (PcdCpuMicrocodePatchAddress),
     59    FixedPcdGet32 (PcdCpuMicrocodePatchRegionSize),
    5760    FixedPcdGet32 (PcdFlashCodeCacheAddress),
    5861    FixedPcdGet32 (PcdFlashCodeCacheSize),
    5962  }
    6063};
    61 
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