Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 23 Feb 2009 19:31:48 +0000 (UTC)
From:      Nathan Whitehorn <nwhitehorn@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org
Subject:   svn commit: r188951 - head/sys/powerpc/aim
Message-ID:  <200902231931.n1NJVmnL033899@svn.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: nwhitehorn
Date: Mon Feb 23 19:31:48 2009
New Revision: 188951
URL: http://svn.freebsd.org/changeset/base/188951

Log:
  Fix comment: we write the trap vector to SPRG3, not SPRG0.

Modified:
  head/sys/powerpc/aim/trap_subr.S

Modified: head/sys/powerpc/aim/trap_subr.S
==============================================================================
--- head/sys/powerpc/aim/trap_subr.S	Mon Feb 23 19:30:00 2009	(r188950)
+++ head/sys/powerpc/aim/trap_subr.S	Mon Feb 23 19:31:48 2009	(r188951)
@@ -288,7 +288,7 @@ CNAME(alitrap):
 	mflr	%r28			/* save LR */
 	mfcr	%r29			/* save CR */
 
-	/* Put our exception vector in SPRG0 */
+	/* Put our exception vector in SPRG3 */
 	li	%r31, EXC_ALI
 	mtsprg3	%r31
 
@@ -360,7 +360,7 @@ CNAME(dsisize) = .-CNAME(dsitrap)
  * Preamble code for DSI/ISI traps
  */
 disitrap:
-	/* Write the trap vector to SPRG0 by computing LR & 0xff00 */
+	/* Write the trap vector to SPRG3 by computing LR & 0xff00 */
 	mflr	%r1
 	andi.	%r1,%r1,0xff00
 	mtsprg3	%r1
@@ -533,7 +533,7 @@ CNAME(breakpoint):
  * Now the kdb trap catching code.
  */
 dbtrap:
-	/* Write the trap vector to SPRG0 by computing LR & 0xff00 */
+	/* Write the trap vector to SPRG3 by computing LR & 0xff00 */
 	mflr	%r1
 	andi.	%r1,%r1,0xff00
 	mtsprg3	%r1



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