]> git.proxmox.com Git - mirror_edk2.git/commit - ArmPkg/Library/ArmLib/AArch64/ArmLibSupportV8.S
ArmPkg: Fix the return type of the ReadCCSIDR function
authorRebecca Cran <rebecca@nuviainc.com>
Mon, 8 Feb 2021 00:52:39 +0000 (17:52 -0700)
committermergify[bot] <37929162+mergify[bot]@users.noreply.github.com>
Mon, 8 Feb 2021 19:35:23 +0000 (19:35 +0000)
commit93ff7a4e8e11d25f523dbddeecf20ed591297cc1
treef18dc167eff8b42cfba7ccf36eee68ba12708268
parent827a71cc9efb2d10733cfa59590b4d205ba97abe
ArmPkg: Fix the return type of the ReadCCSIDR function

When CCIDX is supported, the Current Cache Size ID Register contains
data above 32 bits: namely the number of sets. Avoid truncating this
by returning a UINTN instead of UINT32. On AARCH32, the expanded
number of sets data can be read via the CCSIDR2 register.

Also, add Doxygen comments for the function.

Signed-off-by: Rebecca Cran <rebecca@nuviainc.com>
Reviewed-by: Sami Mujawar <sami.mujawar@arm.com>
Reviewed-by: Leif Lindholm <leif@nuviainc.com>
ArmPkg/Library/ArmLib/AArch64/ArmLibSupportV8.S
ArmPkg/Library/ArmLib/Arm/ArmLibSupportV7.S
ArmPkg/Library/ArmLib/Arm/ArmLibSupportV7.asm
ArmPkg/Library/ArmLib/ArmLibPrivate.h