patch-2.4.21 linux-2.4.21/arch/ppc/boot/simple/head.S
Next file: linux-2.4.21/arch/ppc/boot/simple/iic.c
Previous file: linux-2.4.21/arch/ppc/boot/simple/embed_config.c
Back to the patch index
Back to the overall index
- Lines: 35
- Date:
2003-06-13 07:51:31.000000000 -0700
- Orig file:
linux-2.4.20/arch/ppc/boot/simple/head.S
- Orig date:
2002-11-28 15:53:11.000000000 -0800
diff -urN linux-2.4.20/arch/ppc/boot/simple/head.S linux-2.4.21/arch/ppc/boot/simple/head.S
@@ -7,12 +7,10 @@
* trini@mvista.com
* Derived from arch/ppc/boot/prep/head.S (Cort Dougan, many others).
*
- * Copyright 2001 MontaVista Software Inc.
- *
- * This program is free software; you can redistribute it and/or modify it
- * under the terms of the GNU General Public License as published by the
- * Free Software Foundation; either version 2 of the License, or (at your
- * option) any later version.
+ * 2001-2003 (c) MontaVista, Software, Inc. This file is licensed under
+ * the terms of the GNU General Public License version 2. This program
+ * is licensed "as is" without any warranty of any kind, whether express
+ * or implied.
*/
#include <linux/config.h>
@@ -75,6 +73,17 @@
bl disable_6xx_l1cache
#if defined(CONFIG_FORCE) || defined(CONFIG_K2) || defined(CONFIG_EV64260)
bl _setup_L2CR
+
+ /* If 745x, turn off L3CR as well */
+ mfspr r8,PVR
+ srwi r8,r8,16
+
+ cmpli cr0,r8,0x8000 /* 7450 */
+ cmpli cr1,r8,0x8001 /* 7455 */
+ cmpli cr2,r8,0x8002 /* 7457 */
+ cror 4*cr0+eq,4*cr0+eq,4*cr1+eq /* Now test if any are true. */
+ cror 4*cr0+eq,4*cr0+eq,4*cr2+eq
+ beql _setup_L3CR
#endif
#endif
FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen (who was at: slshen@lbl.gov)