Commit 05efde9d authored by Catalin Marinas's avatar Catalin Marinas

nommu: Do not override the CP15 control reg value returned from initfunc

The patch removes the "mrc" instruction in head-nommu.S overriding the
r0 register containing the value to be written in the CP15 system
control register.
Signed-off-by: default avatarCatalin Marinas <catalin.marinas@arm.com>
parent 68b7f715
...@@ -61,7 +61,10 @@ ENDPROC(stext) ...@@ -61,7 +61,10 @@ ENDPROC(stext)
*/ */
__after_proc_init: __after_proc_init:
#ifdef CONFIG_CPU_CP15 #ifdef CONFIG_CPU_CP15
mrc p15, 0, r0, c1, c0, 0 @ read control reg /*
* CP15 system control register value returned in r0 from
* the CPU init function.
*/
#ifdef CONFIG_ALIGNMENT_TRAP #ifdef CONFIG_ALIGNMENT_TRAP
orr r0, r0, #CR_A orr r0, r0, #CR_A
#else #else
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment