Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 8 Feb 2008 16:47:51 GMT
From:      Warner Losh <imp@FreeBSD.org>
To:        Perforce Change Reviews <perforce@freebsd.org>
Subject:   PERFORCE change 135043 for review
Message-ID:  <200802081647.m18Glp89077957@repoman.freebsd.org>

next in thread | raw e-mail | index | archive | help
http://perforce.freebsd.org/chv.cgi?CH=135043

Change 135043 by imp@imp_lighthouse on 2008/02/08 16:47:48

	Save/Restore v0 across the call to DO_AST in the one case where
	we need to preserve its value.

Affected files ...

.. //depot/projects/mips2-jnpr/src/sys/mips/mips/exception.S#13 edit

Differences ...

==== //depot/projects/mips2-jnpr/src/sys/mips/mips/exception.S#13 (text+ko) ====

@@ -383,8 +383,9 @@
 	sw	a3, STAND_RA_OFFSET + KERN_REG_SIZE(sp)		# for debugging
 
 	.set	at
-	/* A call to AST would step on v0, I think, do we need to save it? */
+	move	s0, v0
 	DO_AST
+	move	v0, s0
 	.set	noat
 
 	RESTORE_CPU			# v0 contains the return address.



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