Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 28 Apr 2003 19:49:49 -0700 (PDT)
From:      Juli Mallett <jmallett@FreeBSD.org>
To:        Perforce Change Reviews <perforce@freebsd.org>
Subject:   PERFORCE change 30026 for review
Message-ID:  <200304290249.h3T2nnGZ043350@repoman.freebsd.org>

index | next in thread | raw e-mail

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

Change 30026 by jmallett@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);
 }
 
 /*


help

Want to link to this message? Use this
URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200304290249.h3T2nnGZ043350>