Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 27 Feb 2009 12:18:17 +0000 (UTC)
From:      Rafal Jaworowski <raj@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org
Subject:   svn commit: r189101 - head/sys/powerpc/booke
Message-ID:  <200902271218.n1RCIHW4070126@svn.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: raj
Date: Fri Feb 27 12:18:17 2009
New Revision: 189101
URL: http://svn.freebsd.org/changeset/base/189101

Log:
  Prefer register usage style to be more consistent with the rest of the
  trap_subr.S code.

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

Modified: head/sys/powerpc/booke/trap_subr.S
==============================================================================
--- head/sys/powerpc/booke/trap_subr.S	Fri Feb 27 12:08:24 2009	(r189100)
+++ head/sys/powerpc/booke/trap_subr.S	Fri Feb 27 12:18:17 2009	(r189101)
@@ -198,23 +198,23 @@
 	/* save DEAR, ESR */						\
 	lwz	%r28, (savearea+CPUSAVE_BOOKE_DEAR)(%r2);		\
 	lwz	%r29, (savearea+CPUSAVE_BOOKE_ESR)(%r2);		\
-	stw	%r28, FRAME_BOOKE_DEAR+8(1);				\
-	stw	%r29, FRAME_BOOKE_ESR+8(1);				\
+	stw	%r28, FRAME_BOOKE_DEAR+8(%r1);				\
+	stw	%r29, FRAME_BOOKE_ESR+8(%r1);				\
 	/* save XER, CTR, exc number */					\
 	mfxer	%r3;							\
 	mfctr	%r4;							\
-	stw	%r3, FRAME_XER+8(1);					\
-	stw	%r4, FRAME_CTR+8(1);					\
+	stw	%r3, FRAME_XER+8(%r1);					\
+	stw	%r4, FRAME_CTR+8(%r1);					\
 	li	%r5, exc;						\
-	stw	%r5, FRAME_EXC+8(1);					\
+	stw	%r5, FRAME_EXC+8(%r1);					\
 	/* save DBCR0 */						\
 	mfspr	%r3, SPR_DBCR0;						\
-	stw	%r3, FRAME_BOOKE_DBCR0+8(1);				\
+	stw	%r3, FRAME_BOOKE_DBCR0+8(%r1);				\
 	/* save xSSR0-1 */						\
 	lwz	%r30, (savearea+CPUSAVE_SRR0)(%r2);			\
 	lwz	%r31, (savearea+CPUSAVE_SRR1)(%r2);			\
-	stw	%r30, FRAME_SRR0+8(1);					\
-	stw	%r31, FRAME_SRR1+8(1)
+	stw	%r30, FRAME_SRR0+8(%r1);				\
+	stw	%r31, FRAME_SRR1+8(%r1)
 
 /*
  *



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