Subject: Re: New kernel does not boot
To: None <martin@duskware.de>
From: Izumi Tsutsui <tsutsui@ceres.dti.ne.jp>
List: port-sgimips
Date: 10/22/2005 01:20:40
In article <20051020201457.GB20772@drowsy.duskware.de>
martin@duskware.de wrote:

> but with the r5k_enable_sdcache()
> commented out my custom kernel boots. Duh - anything special on this
> machine?

How about the attached patch?
---
Izumi Tsutsui


Index: machdep.c
===================================================================
RCS file: /cvsroot/src/sys/arch/sgimips/sgimips/machdep.c,v
retrieving revision 1.94
diff -u -r1.94 machdep.c
--- machdep.c	18 Oct 2005 00:47:07 -0000	1.94
+++ machdep.c	21 Oct 2005 16:16:45 -0000
@@ -862,6 +862,8 @@
 #if defined(MIPS3)
 	case MIPS_R5000:
 	case MIPS_RM5200:
+		if (mach_type == MACH_SGI_IP32)
+			(*ARCBIOS->FlushAllCaches)();
 		r5k_enable_sdcache();
 		break;
 #endif