Open
Description
I have booted an RPi 3 in 32-bit mode, extracted the "ARM boot stub" (that's what I'm calling the FW-provided code at address 0; is there an official name for this?) and disassembled it with the aim of determining how to implement something equivalent for AArch64. I have found what appears to be a bug:
nsacr_val:
.word 0x63fff
...
; NSACR: DMA, CL, all co-procs enabled from NS mode
ldr r1, nsacr_val
; Write NSACR (with ARM1176JZF-S value!)
mcr 15, 0, r1, cr1, cr1, {2}
As far as I can tell, the value written there is appropriate for the original ARM1176JZF-S CPU in the BCM2835. However, many of the bits are now res0 on the Cortex A53, so I believe that value should be changed.
Activity