PERFORCE change 30026 for review

Juli Mallett jmallett at FreeBSD.org
Mon Apr 28 19:49:51 PDT 2003


http://perforce.freebsd.org/chv.cgi?CH=30026

Change 30026 by jmallett at jmallett_dalek on 2003/04/28 19:49:35

	It's safe to turn off BEV now.  While here, print some
	friendly little reminders in reset/halt functions so
	I don't get confused about whether the machine just
	died or rebooted.

Affected files ...

.. //depot/projects/mips/sys/mips/mips/machdep.c#18 edit

Differences ...

==== //depot/projects/mips/sys/mips/mips/machdep.c#18 (text+ko) ====

@@ -195,12 +195,14 @@
 void
 cpu_halt(void)
 {
+	printf("Halting...\n");
 	platform_halt();
 }
 
 void
 cpu_reset(void)
 {
+	printf("Resetting...\n");
 	platform_reset();
 }
 
@@ -594,8 +596,7 @@
 	mips_dcache_wbinv_all();
 
 	/* Clear BEV in SR so we start handling our own exceptions */
-	if (0)
-		mips_cp0_status_write(mips_cp0_status_read() & ~MIPS_SR_BEV);
+	mips_cp0_status_write(mips_cp0_status_read() & ~MIPS_SR_BEV);
 }
 
 /*


More information about the p4-projects mailing list