PERFORCE change 93144 for review

Kip Macy kmacy at FreeBSD.org
Sat Mar 11 10:36:24 GMT 2006


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

Change 93144 by kmacy at kmacy_storage:sun4v_work on 2006/03/11 10:35:19

	make sure user wstate gets set correctly

Affected files ...

.. //depot/projects/kmacy_sun4v/src/sys/sun4v/sun4v/vm_machdep.c#5 edit

Differences ...

==== //depot/projects/kmacy_sun4v/src/sys/sun4v/sun4v/vm_machdep.c#5 (text+ko) ====

@@ -85,6 +85,7 @@
 #include <machine/pcb.h>
 #include <machine/tlb.h>
 #include <machine/tstate.h>
+#include <machine/wstate.h>
 
 #ifndef NSFBUFS
 #define	NSFBUFS		(512 + maxusers * 16)
@@ -283,7 +284,9 @@
 	tf->tf_out[1] = 0;
 	tf->tf_tstate &= ~TSTATE_XCC_C;		/* success */
 	tf->tf_fprs = 0;
+	tf->tf_wstate = WSTATE_U64;
 
+
 	td2->td_frame = tf;
 	fp = (struct frame *)tf - 1;
 	fp->fr_local[0] = (u_long)fork_return;
@@ -293,7 +296,6 @@
 	fp->fr_pc = fp->fr_fp = 0;
 	pcb2->pcb_sp = (u_long)fp - SPOFF;
 	pcb2->pcb_pc = (u_long)fork_trampoline - 8;
-
 	/* Setup to release sched_lock in fork_exit(). */
 	td2->td_md.md_spinlock_count = 1;
 	td2->td_md.md_saved_pil = 0;


More information about the p4-projects mailing list