Skip to content

Commit

Permalink
Fixed compilation of all packages tracked by CI after rebasing upon
Browse files Browse the repository at this point in the history
edk2-stable202502 tag.
  • Loading branch information
Mikhail Krichanov committed Feb 25, 2025
1 parent dffea35 commit 8145004
Show file tree
Hide file tree
Showing 14 changed files with 31 additions and 71 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/build_arm.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/build_nolto.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down Expand Up @@ -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));
Expand Down
2 changes: 0 additions & 2 deletions BaseTools/Source/C/VolInfo/VolInfo.h
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
5 changes: 0 additions & 5 deletions Ext4Pkg/Ext4Pkg.dsc
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -54,6 +54,8 @@ VarCheckHiiLibReceiveHiiBinHandler (
{
EFI_STATUS Status;

Status = EFI_INVALID_PARAMETER;

//
// If input is invalid, stop processing this SMI
//
Expand Down
4 changes: 2 additions & 2 deletions OvmfPkg/OvmfPkgX64.fdf
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down
8 changes: 7 additions & 1 deletion OvmfPkg/Tcg/TdTcg2Dxe/MeasureBootPeCoff.c
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
1 change: 1 addition & 0 deletions SecurityPkg/Tcg/Tcg2Acpi/Tcg2Acpi.inf
Original file line number Diff line number Diff line change
Expand Up @@ -58,6 +58,7 @@
Tcg2PhysicalPresenceLib
PcdLib
HobLib
IntrinsicLib

[Guids]
gEfiTpmDeviceInstanceTpm20DtpmGuid ## PRODUCES ## GUID # TPM device identifier
Expand Down
2 changes: 1 addition & 1 deletion UefiCpuPkg/Library/CpuArchLib/CpuPageTable.c
Original file line number Diff line number Diff line change
Expand Up @@ -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);

Expand Down
26 changes: 13 additions & 13 deletions UefiCpuPkg/Library/CpuExceptionHandlerLib/SmmException.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down Expand Up @@ -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;
}
Expand Down
41 changes: 0 additions & 41 deletions UefiCpuPkg/PiSmmCpuDxeSmm/PiSmmCpuCommon.c
Original file line number Diff line number Diff line change
Expand Up @@ -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));
}
}
}

/**
Expand Down Expand Up @@ -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.
Expand Down
1 change: 0 additions & 1 deletion UefiCpuPkg/PiSmmCpuDxeSmm/PiSmmCpuStandaloneMm.inf
Original file line number Diff line number Diff line change
Expand Up @@ -79,7 +79,6 @@
CpuLib
ReportStatusCodeLib
SmmCpuFeaturesLib
PeCoffGetEntryPointLib
PerformanceLib
CpuPageTableLib
MmSaveStateLib
Expand Down
1 change: 0 additions & 1 deletion UefiCpuPkg/PiSmmCpuDxeSmm/SmramSaveState.c
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down

0 comments on commit 8145004

Please sign in to comment.