[edk2-devel] [PATCH v5 10/23] ArmPkg: Add helper to read the CCSIDR2 register

Sami Mujawar sami.mujawar at arm.com
Wed Jan 6 09:55:07 UTC 2021


Hi Rebecca,

On Mon, Jan 4, 2021 at 02:58 PM, Rebecca Cran wrote:

> 
> +// UINT32
> +// ReadCCSIDR2 (
> +// IN UINT32 CSSELR
> +// )
> +ASM_FUNC(ReadCCSIDR2)
> + mcr p15,2,r0,c0,c0,0 @ Write Cache Size Selection Register (CSSELR)
> + isb
> + mrc p15,1,r0,c0,c2,0 @ Read current CP15 Cache Size ID Register
> (CCSIDR2)

I believe the instruction encoding for CCSIDR2 should be mrc p15,1,r0,c0,c0,2
Similar change is needed in ArmLibSupportV7.asm

> 
> + bx lr
> +

Regards,

Sami Mujawar


-=-=-=-=-=-=-=-=-=-=-=-
Groups.io Links: You receive all messages sent to this group.
View/Reply Online (#69804): https://edk2.groups.io/g/devel/message/69804
Mute This Topic: https://groups.io/mt/79438414/1813853
Group Owner: devel+owner at edk2.groups.io
Unsubscribe: https://edk2.groups.io/g/devel/unsub [edk2-devel-archive at redhat.com]
-=-=-=-=-=-=-=-=-=-=-=-


-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://listman.redhat.com/archives/edk2-devel-archive/attachments/20210106/449f28a2/attachment.htm>


More information about the edk2-devel-archive mailing list