PERFORCE change 135250 for review

Randall R. Stewart rrs at FreeBSD.org
Tue Feb 12 04:49:31 PST 2008


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

Change 135250 by rrs at 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:					


More information about the p4-projects mailing list