Thread (27 messages) 27 messages, 4 authors, 2008-04-24

Re: [PATCH 03/10] powerpc: Add kexec support for PPC_85xx platforms

From: Dale Farnsworth <hidden>
Date: 2007-12-18 16:14:36

On Sat, Dec 15, 2007 at 05:16:25PM +1100, Benjamin Herrenschmidt wrote:
quoted
index 8b642ab..db0e749 100644
--- a/arch/powerpc/kernel/misc_32.S
+++ b/arch/powerpc/kernel/misc_32.S
@@ -816,6 +816,75 @@ relocate_new_kernel:
 	/* r4 = reboot_code_buffer */
 	/* r5 = start_address      */
 
+#ifdef CONFIG_E500
+	/*
+	 * Since we can't turn off the MMU, we must create an identity
+	 * map for kernel low memory.  We start by invalidating the
+	 * TLB entries we don't need.
+	 *
+	 * First, invalidate the TLB0 entries
+	 */
+	li	r6, 0x04
+	tlbivax	0, r6
+#ifdef CONFIG_SMP
+	tlbsync
+#endif
+	msync
+
This is really E500 specific or should it be CONFIG_FSL_BOOKE ?

Ben.
I agree that CONFIG_FSL_BOOKE is more appropriate.  I'll reflect that
in the next respin.

Thanks,
-Dale
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help