mirror of https://github.com/acidanthera/audk.git
Fixed compilation of all packages tracked by CI after rebasing upon
edk2-stable202502 tag.
This commit is contained in:
parent
556603061a
commit
cf7183bed3
|
@ -17,7 +17,7 @@ env:
|
|||
jobs:
|
||||
build-linux-gcc5:
|
||||
name: Linux GCC
|
||||
runs-on: ubuntu-22.04
|
||||
runs-on: ubuntu-24.04
|
||||
steps:
|
||||
- uses: actions/checkout@v4
|
||||
with:
|
||||
|
|
|
@ -17,7 +17,7 @@ env:
|
|||
jobs:
|
||||
build-linux-arm:
|
||||
name: Linux GCC ARM
|
||||
runs-on: ubuntu-22.04
|
||||
runs-on: ubuntu-24.04
|
||||
steps:
|
||||
- uses: actions/checkout@v4
|
||||
with:
|
||||
|
|
|
@ -1008,7 +1008,7 @@ CEntryPoint (
|
|||
IN UINTN Arg3
|
||||
)
|
||||
{
|
||||
PE_COFF_LOADER_IMAGE_CONTEXT ImageContext;
|
||||
UEFI_IMAGE_LOADER_IMAGE_CONTEXT ImageContext;
|
||||
ARM_SVC_ARGS EventCompleteSvcArgs;
|
||||
EFI_STATUS Status;
|
||||
COMM_PROTOCOL CommProtocol;
|
||||
|
@ -1068,7 +1068,8 @@ CEntryPoint (
|
|||
&ImageContext,
|
||||
TeData,
|
||||
TeDataSize,
|
||||
UEFI_IMAGE_SOURCE_FV
|
||||
UEFI_IMAGE_SOURCE_FV,
|
||||
UefiImageOriginFv
|
||||
);
|
||||
if (EFI_ERROR (Status)) {
|
||||
DEBUG ((DEBUG_ERROR, "Unable to locate Standalone MM Core PE-COFF Section information - %r\n", Status));
|
||||
|
|
|
@ -9,8 +9,6 @@ SPDX-License-Identifier: BSD-2-Clause-Patent
|
|||
#ifndef _VOLINFO_H_
|
||||
#define _VOLINFO_H_ 1
|
||||
|
||||
#define PI_SPECIFICATION_VERSION 0x00010000
|
||||
|
||||
#define EFI_DEP_BEFORE 0x00
|
||||
#define EFI_DEP_AFTER 0x01
|
||||
#define EFI_DEP_PUSH 0x02
|
||||
|
|
|
@ -47,11 +47,6 @@
|
|||
OrderedCollectionLib|MdePkg/Library/BaseOrderedCollectionRedBlackTreeLib/BaseOrderedCollectionRedBlackTreeLib.inf
|
||||
BaseUcs2Utf8Lib|RedfishPkg/Library/BaseUcs2Utf8Lib/BaseUcs2Utf8Lib.inf
|
||||
|
||||
#
|
||||
# Required for stack protector support
|
||||
#
|
||||
NULL|MdePkg/Library/BaseStackCheckLib/BaseStackCheckLib.inf
|
||||
|
||||
###################################################################################################
|
||||
#
|
||||
# Components Section - list of the modules and components that will be processed by compilation
|
||||
|
|
|
@ -54,6 +54,8 @@ VarCheckHiiLibReceiveHiiBinHandler (
|
|||
{
|
||||
EFI_STATUS Status;
|
||||
|
||||
Status = EFI_INVALID_PARAMETER;
|
||||
|
||||
//
|
||||
// If input is invalid, stop processing this SMI
|
||||
//
|
||||
|
|
|
@ -103,11 +103,11 @@ gUefiOvmfPkgTokenSpaceGuid.PcdOvmfSecApicPageTableBase|gUefiOvmfPkgTokenSpaceGui
|
|||
0x011000|0x00F000
|
||||
gUefiOvmfPkgTokenSpaceGuid.PcdOvmfSecPeiTempRamBase|gUefiOvmfPkgTokenSpaceGuid.PcdOvmfSecPeiTempRamSize
|
||||
|
||||
0x020000|0x120000
|
||||
0x020000|0x130000
|
||||
gUefiOvmfPkgTokenSpaceGuid.PcdOvmfPeiMemFvBase|gUefiOvmfPkgTokenSpaceGuid.PcdOvmfPeiMemFvSize
|
||||
FV = PEIFV
|
||||
|
||||
0x140000|0xE40000
|
||||
0x150000|0xE30000
|
||||
gUefiOvmfPkgTokenSpaceGuid.PcdOvmfDxeMemFvBase|gUefiOvmfPkgTokenSpaceGuid.PcdOvmfDxeMemFvSize
|
||||
FV = DXEFV
|
||||
|
||||
|
|
|
@ -131,7 +131,13 @@ MeasurePeImageAndExtend (
|
|||
//
|
||||
// Get information about the image being loaded
|
||||
//
|
||||
Status = UefiImageInitializeContext (&ImageContext, (VOID *) (UINTN) ImageAddress, ImageSize);
|
||||
Status = UefiImageInitializeContext (
|
||||
&ImageContext,
|
||||
(VOID *)(UINTN)ImageAddress,
|
||||
(UINT32)ImageSize,
|
||||
UEFI_IMAGE_SOURCE_FV,
|
||||
UefiImageOriginFv
|
||||
);
|
||||
if (EFI_ERROR (Status)) {
|
||||
//
|
||||
// The information can't be got from the invalid PeImage
|
||||
|
|
|
@ -58,6 +58,7 @@
|
|||
Tcg2PhysicalPresenceLib
|
||||
PcdLib
|
||||
HobLib
|
||||
IntrinsicLib
|
||||
|
||||
[Guids]
|
||||
gEfiTpmDeviceInstanceTpm20DtpmGuid ## PRODUCES ## GUID # TPM device identifier
|
||||
|
|
|
@ -1654,7 +1654,7 @@ EfiGetMemoryAttributes (
|
|||
|
||||
// Make sure AddressEncMask is contained to smallest supported address field.
|
||||
//
|
||||
AddressEncMask = PcdGet64 (PcdPteMemoryEncryptionAddressOrMask) & PAGING_1G_ADDRESS_MASK_64;
|
||||
AddressEncMask = mPlatformInfoHob2->PteMemoryEncryptionAddressOrMask & PAGING_1G_ADDRESS_MASK_64;
|
||||
|
||||
GetCurrentPagingContext (&CurrentPagingContext);
|
||||
|
||||
|
|
|
@ -8,7 +8,7 @@
|
|||
|
||||
#include <PiSmm.h>
|
||||
#include "CpuExceptionCommon.h"
|
||||
#include <Library/SmmServicesTableLib.h>
|
||||
// #include <Library/SmmServicesTableLib.h>
|
||||
#include <Guid/DebugImageInfoTable.h>
|
||||
|
||||
CONST UINTN mDoFarReturnFlag = 1;
|
||||
|
@ -131,18 +131,18 @@ InternalGetSystemConfigurationTable (
|
|||
OUT VOID **Table
|
||||
)
|
||||
{
|
||||
UINTN Index;
|
||||
|
||||
ASSERT (TableGuid != NULL);
|
||||
ASSERT (Table != NULL);
|
||||
|
||||
*Table = NULL;
|
||||
for (Index = 0; Index < gSmst->NumberOfTableEntries; Index++) {
|
||||
if (CompareGuid (TableGuid, &(gSmst->SmmConfigurationTable[Index].VendorGuid))) {
|
||||
*Table = gSmst->SmmConfigurationTable[Index].VendorTable;
|
||||
return EFI_SUCCESS;
|
||||
}
|
||||
}
|
||||
// UINTN Index;
|
||||
//
|
||||
// ASSERT (TableGuid != NULL);
|
||||
// ASSERT (Table != NULL);
|
||||
//
|
||||
// *Table = NULL;
|
||||
// for (Index = 0; Index < gSmst->NumberOfTableEntries; Index++) {
|
||||
// if (CompareGuid (TableGuid, &(gSmst->SmmConfigurationTable[Index].VendorGuid))) {
|
||||
// *Table = gSmst->SmmConfigurationTable[Index].VendorTable;
|
||||
// return EFI_SUCCESS;
|
||||
// }
|
||||
// }
|
||||
|
||||
return EFI_NOT_FOUND;
|
||||
}
|
||||
|
|
|
@ -182,20 +182,6 @@ DumpModuleInfoByIp (
|
|||
IN UINTN CallerIpAddress
|
||||
)
|
||||
{
|
||||
UINTN Pe32Data;
|
||||
VOID *PdbPointer;
|
||||
|
||||
//
|
||||
// Find Image Base
|
||||
//
|
||||
Pe32Data = PeCoffSearchImageBase (CallerIpAddress);
|
||||
if (Pe32Data != 0) {
|
||||
DEBUG ((DEBUG_ERROR, "It is invoked from the instruction before IP(0x%p)", (VOID *)CallerIpAddress));
|
||||
PdbPointer = PeCoffLoaderGetPdbPointer ((VOID *)Pe32Data);
|
||||
if (PdbPointer != NULL) {
|
||||
DEBUG ((DEBUG_ERROR, " in module (%a)\n", PdbPointer));
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
|
@ -1498,33 +1484,6 @@ ConfigSmmCodeAccessCheck (
|
|||
PERF_FUNCTION_END ();
|
||||
}
|
||||
|
||||
/**
|
||||
Allocate pages for code.
|
||||
|
||||
@param[in] Pages Number of pages to be allocated.
|
||||
|
||||
@return Allocated memory.
|
||||
**/
|
||||
VOID *
|
||||
AllocateCodePages (
|
||||
IN UINTN Pages
|
||||
)
|
||||
{
|
||||
EFI_STATUS Status;
|
||||
EFI_PHYSICAL_ADDRESS Memory;
|
||||
|
||||
if (Pages == 0) {
|
||||
return NULL;
|
||||
}
|
||||
|
||||
Status = gMmst->MmAllocatePages (AllocateAnyPages, EfiRuntimeServicesCode, Pages, &Memory);
|
||||
if (EFI_ERROR (Status)) {
|
||||
return NULL;
|
||||
}
|
||||
|
||||
return (VOID *)(UINTN)Memory;
|
||||
}
|
||||
|
||||
/**
|
||||
Perform the pre tasks.
|
||||
|
||||
|
|
|
@ -79,7 +79,6 @@
|
|||
CpuLib
|
||||
ReportStatusCodeLib
|
||||
SmmCpuFeaturesLib
|
||||
PeCoffGetEntryPointLib
|
||||
PerformanceLib
|
||||
CpuPageTableLib
|
||||
MmSaveStateLib
|
||||
|
|
|
@ -14,7 +14,6 @@ SPDX-License-Identifier: BSD-2-Clause-Patent
|
|||
|
||||
#include <Library/BaseLib.h>
|
||||
#include <Library/BaseMemoryLib.h>
|
||||
#include <Library/SmmServicesTableLib.h>
|
||||
#include <Library/DebugLib.h>
|
||||
|
||||
#include "PiSmmCpuCommon.h"
|
||||
|
|
Loading…
Reference in New Issue