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 4d0e6b3
Show file tree
Hide file tree
Showing 12 changed files with 30 additions and 69 deletions.
6 changes: 3 additions & 3 deletions .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 Expand Up @@ -114,7 +114,7 @@ jobs:

build-linux-clangdwarf:
name: Linux CLANGDWARF
runs-on: ubuntu-22.04
runs-on: ubuntu-24.04
steps:
- uses: actions/checkout@v4
with:
Expand Down Expand Up @@ -210,7 +210,7 @@ jobs:

test-firmwares:
name: Test
runs-on: ubuntu-22.04
runs-on: ubuntu-24.04
needs: [build-linux-gcc5, build-linux-clangdwarf]

strategy:
Expand Down
6 changes: 3 additions & 3 deletions .github/workflows/build_common.yml
Original file line number Diff line number Diff line change
Expand Up @@ -269,7 +269,7 @@ jobs:

build-linux-clangpdb:
name: Linux CLANGPDB
runs-on: ubuntu-22.04
runs-on: ubuntu-24.04
steps:
- uses: actions/checkout@v4
with:
Expand Down Expand Up @@ -405,7 +405,7 @@ jobs:

build-linux-clangdwarf:
name: Linux CLANGDWARF
runs-on: ubuntu-22.04
runs-on: ubuntu-24.04
steps:
- uses: actions/checkout@v4
with:
Expand Down Expand Up @@ -541,7 +541,7 @@ 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
10 changes: 5 additions & 5 deletions .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 Expand Up @@ -117,7 +117,7 @@ jobs:

build-linux-amd:
name: Linux GCC AMD
runs-on: ubuntu-22.04
runs-on: ubuntu-24.04
steps:
- uses: actions/checkout@v4
with:
Expand Down Expand Up @@ -226,7 +226,7 @@ jobs:

build-linux-common:
name: Linux GCC Common
runs-on: ubuntu-22.04
runs-on: ubuntu-24.04
steps:
- uses: actions/checkout@v4
with:
Expand Down Expand Up @@ -359,7 +359,7 @@ jobs:

test-arm:
name: Test ARM
runs-on: ubuntu-22.04
runs-on: ubuntu-24.04
needs: [build-linux-arm]

strategy:
Expand Down Expand Up @@ -461,7 +461,7 @@ jobs:

test-amd:
name: Test AMD
runs-on: ubuntu-22.04
runs-on: ubuntu-24.04
needs: [build-linux-amd]

strategy:
Expand Down
8 changes: 4 additions & 4 deletions .github/workflows/build_x86.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -245,7 +245,7 @@ jobs:

build-linux-clangpdb:
name: Linux CLANGPDB
runs-on: ubuntu-22.04
runs-on: ubuntu-24.04
steps:
- uses: actions/checkout@v4
with:
Expand Down Expand Up @@ -350,7 +350,7 @@ jobs:

build-linux-clangdwarf:
name: Linux CLANGDWARF
runs-on: ubuntu-22.04
runs-on: ubuntu-24.04
steps:
- uses: actions/checkout@v4
with:
Expand Down Expand Up @@ -455,7 +455,7 @@ 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 Expand Up @@ -560,7 +560,7 @@ jobs:

test-firmwares:
name: Test
runs-on: ubuntu-22.04
runs-on: ubuntu-24.04
needs: [build-macos, build-windows, build-linux-clangpdb, build-linux-clangdwarf, build-linux-gcc5]

strategy:
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
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
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

0 comments on commit 4d0e6b3

Please sign in to comment.