<div>Catalin,</div>
<div>I have tested this patch on v7 based SMP system. This patch is mandatory to if we are booting</div>
<div>from non-secure mode. I ack this patch.</div>
<div> </div>
<div>thanks,</div>
<div>Srinidhi<br><br><br></div>
<div class="gmail_quote">On Thu, Oct 15, 2009 at 5:56 PM, Catalin Marinas <span dir="ltr"><<a href="mailto:catalin.marinas@arm.com">catalin.marinas@arm.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="PADDING-LEFT: 1ex; MARGIN: 0px 0px 0px 0.8ex; BORDER-LEFT: #ccc 1px solid">From: Tony Thompson <<a href="mailto:Anthony.Thompson@arm.com">Anthony.Thompson@arm.com</a>><br><br>
If running in non-secure mode, enabling this register will fault.<br><br>Signed-off-by: Tony Thompson <<a href="mailto:Anthony.Thompson@arm.com">Anthony.Thompson@arm.com</a>><br>Signed-off-by: Catalin Marinas <<a href="mailto:catalin.marinas@arm.com">catalin.marinas@arm.com</a>><br>
---<br> arch/arm/mm/proc-v7.S | 7 ++++---<br> 1 files changed, 4 insertions(+), 3 deletions(-)<br><br>diff --git a/arch/arm/mm/proc-v7.S b/arch/arm/mm/proc-v7.S<br>index 23ebcf6..119a322 100644<br>--- a/arch/arm/mm/proc-v7.S<br>
+++ b/arch/arm/mm/proc-v7.S<br>@@ -184,9 +184,10 @@ cpu_v7_name:<br> */<br> __v7_setup:<br> #ifdef CONFIG_SMP<br>- mrc p15, 0, r0, c1, c0, 1 @ Enable SMP/nAMP mode and<br>- orr r0, r0, #(1 << 6) | (1 << 0) @ TLB ops broadcasting<br>
- mcr p15, 0, r0, c1, c0, 1<br>+ mrc p15, 0, r0, c1, c0, 1<br>+ tst r0, #(1 << 6) @ SMP/nAMP mode enabled?<br>+ orreq r0, r0, #(1 << 6) | (1 << 0) @ Enable SMP/nAMP mode and<br>
+ mcreq p15, 0, r0, c1, c0, 1 @ TLB ops broadcasting<br> #endif<br> adr r12, __v7_setup_stack @ the local stack<br> stmia r12, {r0-r5, r7, r9, r11, lr}<br><br><br>_______________________________________________<br>
linux-arm-kernel mailing list<br><a href="mailto:linux-arm-kernel@lists.infradead.org">linux-arm-kernel@lists.infradead.org</a><br><a href="http://lists.infradead.org/mailman/listinfo/linux-arm-kernel" target="_blank">http://lists.infradead.org/mailman/listinfo/linux-arm-kernel</a><br>
</blockquote></div><br>