[RFC PATCH 6/7] ARM: V7M: Add support for MPU to M-class
Vladimir Murzin
vladimir.murzin at arm.com
Thu May 18 06:41:16 PDT 2017
On 17/05/17 15:18, Vladimir Murzin wrote:
> /* Enable the MPU */
> - mrc p15, 0, r0, c1, c0, 0 @ Read SCTLR
> +AR_CLASS(mrc p15, 0, r0, c1, c0, 0) @ Read SCTLR
> +M_CLASS(ldr r0, [r12, MPU_CTRL])
> bic r0, r0, #CR_BR @ Disable the 'default mem-map'
^^^^^^^
There is a mistake, for M-class it should be #(1 << 2). I'll re-spin.
Cheers
Vladimir
> orr r0, r0, #CR_M @ Set SCTRL.M (MPU on)
> - mcr p15, 0, r0, c1, c0, 0 @ Enable MPU
> +AR_CLASS(mcr p15, 0, r0, c1, c0, 0) @ Enable MPU
> +M_CLASS( str r0, [r12, MPU_CTRL])
More information about the linux-arm-kernel
mailing list