summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorKun Qin <kuqin@microsoft.com>2024-10-10 16:21:45 -0700
committermergify[bot] <37929162+mergify[bot]@users.noreply.github.com>2024-12-11 18:21:29 +0000
commitb689c387e21b6624ed1067ccfa7d2eeadca059df (patch)
tree095f2c459fa9b00e8111737e470179e65c02fdc1
parent6539b693d1322b27dff78e5b433324cb1690c732 (diff)
downloadedk2-b689c387e21b6624ed1067ccfa7d2eeadca059df.tar.gz
ArmPkg: ArmLib: Update function to match header file
Update function implementation to match interface definition. The return should be bound to 0xffff0000, which is guaranteed to be a UINT32. Cc: Leif Lindholm <quic_llindhol@quicinc.com> Cc: Ard Biesheuvel <ardb+tianocore@kernel.org> Cc: Sami Mujawar <sami.mujawar@arm.com> Signed-off-by: Kun Qin <kun.qin@microsoft.com>
-rw-r--r--ArmPkg/Library/ArmLib/ArmLib.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/ArmPkg/Library/ArmLib/ArmLib.c b/ArmPkg/Library/ArmLib/ArmLib.c
index 30849564fc..b75df64885 100644
--- a/ArmPkg/Library/ArmLib/ArmLib.c
+++ b/ArmPkg/Library/ArmLib/ArmLib.c
@@ -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;