Skip to content

Commit

Permalink
ArmVirtPkg/ArmPlatformLib: Drop unused MPCore routines
Browse files Browse the repository at this point in the history
Some of the boilerplate in ArmPlatformLib is only relevant when entering
UEFI on multiple cores, and this is no longer supported. So retire the
associated helper routines.

Signed-off-by: Ard Biesheuvel <[email protected]>
  • Loading branch information
ardbiesheuvel authored and mergify[bot] committed Aug 30, 2024
1 parent 5749b70 commit 5c566ab
Showing 1 changed file with 0 additions and 25 deletions.
25 changes: 0 additions & 25 deletions ArmVirtPkg/Library/ArmPlatformLibQemu/AArch64/ArmPlatformHelper.S
Original file line number Diff line number Diff line change
Expand Up @@ -101,28 +101,3 @@ ASM_FUNC(ArmPlatformPeiBootAction)
isb

0:b ArmEnableVFP // enable SIMD before entering C code

//UINTN
//ArmPlatformGetCorePosition (
// IN UINTN MpId
// );
// With this function: CorePos = (ClusterId * 4) + CoreId
ASM_FUNC(ArmPlatformGetCorePosition)
mov x0, xzr
ret

//UINTN
//ArmPlatformGetPrimaryCoreMpId (
// VOID
// );
ASM_FUNC(ArmPlatformGetPrimaryCoreMpId)
MOV32 (w0, FixedPcdGet32 (PcdArmPrimaryCore))
ret

//UINTN
//ArmPlatformIsPrimaryCore (
// IN UINTN MpId
// );
ASM_FUNC(ArmPlatformIsPrimaryCore)
mov x0, #1
ret

0 comments on commit 5c566ab

Please sign in to comment.