Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 12 Feb 2008 12:49:29 GMT
From:      "Randall R. Stewart" <rrs@FreeBSD.org>
To:        Perforce Change Reviews <perforce@freebsd.org>
Subject:   PERFORCE change 135250 for review
Message-ID:  <200802121249.m1CCnTUh077488@repoman.freebsd.org>

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

Change 135250 by rrs@rrs-mips2-jnpr on 2008/02/12 12:48:41

	Fix the AST code so that k1 is not used and
	       only k0 to get the pcb, use only a0 and t1
	       which should be saved from the events that led
	       us here. This may still be wrong but with these
	       changes I get through many of the sigaction sets
	       before dying.

Affected files ...

.. //depot/projects/mips2-jnpr/src/sys/mips/include/asm.h#11 edit

Differences ...

==== //depot/projects/mips2-jnpr/src/sys/mips/include/asm.h#11 (text+ko) ====

@@ -307,18 +307,18 @@
  * Call ast if required
  */
 #define DO_AST							\
-	GET_CPU_PCPU(k1)					\
-	lw	k1, PC_CURTHREAD(k1);				\
-	lw	t0, TD_FLAGS(k1);				\
+	GET_CPU_PCPU(k0)					\
+	move	a0, k0;						\
+	lw	a0, PC_CURTHREAD(a0);				\
+	lw	t0, TD_FLAGS(a0);			        \
 	and	t0, t0, (TDF_ASTPENDING|TDF_NEEDRESCHED);	\
 	beq	t0, zero, 27f;					\
 	nop;							\
-	lw	k1, TD_FRAME(k1);				\
-	lw	t0, TF_REG_SR(k1);				\
+	lw	a0, TD_FRAME(a0);				\
+	lw	t0, TF_REG_SR(a0);				\
 	and	t0, t0, SR_KSU_USER;				\
 	beq	t0, zero, 27f;					\
 	nop;							\
-	move	a0, k1;						\
 	jal	ast;						\
 	nop;							\
 27:					



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