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>
ret\r
\r
\r
-// UINT32\r
+// UINTN\r
// ReadCCSIDR (\r
// IN UINT32 CSSELR\r
// )\r
mrc p15,0,r0,c0,c2,6 @ Read ID_MMFR4 Register\r
bx lr\r
\r
-// UINT32\r
+// UINTN\r
// ReadCCSIDR (\r
// IN UINT32 CSSELR\r
// )\r
mrc p15,0,r0,c0,c2,6 ; Read ID_MMFR4 Register\r
bx LR\r
\r
-// UINT32\r
+// UINTN\r
// ReadCCSIDR (\r
// IN UINT32 CSSELR\r
// )\r
VOID\r
);\r
\r
-UINT32\r
+/** Reads the CCSIDR register for the specified cache.\r
+\r
+ @param CSSELR The CSSELR cache selection register value.\r
+\r
+ @return The contents of the CCSIDR_EL1 register for the specified cache, when in AARCH64 mode.\r
+ Returns the contents of the CCSIDR register in AARCH32 mode.\r
+**/\r
+UINTN\r
ReadCCSIDR (\r
IN UINT32 CSSELR\r
);\r