Skip to content

Commit

Permalink
ArmPkg: ArmLib: Update function to match header file
Browse files Browse the repository at this point in the history
Update function implementation to match interface definition. The return
should be bound to 0xffff0000, which is guaranteed to be a UINT32.

Cc: Leif Lindholm <[email protected]>
Cc: Ard Biesheuvel <[email protected]>
Cc: Sami Mujawar <[email protected]>

Signed-off-by: Kun Qin <[email protected]>
  • Loading branch information
kuqin12 authored and mergify[bot] committed Dec 11, 2024
1 parent 6539b69 commit b689c38
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions ArmPkg/Library/ArmLib/ArmLib.c
Original file line number Diff line number Diff line change
Expand Up @@ -71,15 +71,15 @@ ArmInstructionCacheLineLength (
return 4 << (ArmCacheInfo () & 0xf); // CTR_EL0.IminLine
}

UINTN
UINT32
EFIAPI
ArmCacheWritebackGranule (
VOID
)
{
UINTN CWG;
UINT32 CWG;

CWG = (ArmCacheInfo () >> 24) & 0xf; // CTR_EL0.CWG
CWG = (UINT32)((ArmCacheInfo () >> 24) & 0xf); // CTR_EL0.CWG

if (CWG == 0) {
return SIZE_2KB;
Expand Down

0 comments on commit b689c38

Please sign in to comment.