Skip to content

32-bit "boot stub" code appears to write 1 to NSACR res0 bits on RPi 3 (and probably RPi 2) #577

Open
@swarren

Description

@swarren

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions