Date: Sat, 11 Mar 2006 10:36:19 GMT From: Kip Macy <kmacy@FreeBSD.org> To: Perforce Change Reviews <perforce@freebsd.org> Subject: PERFORCE change 93144 for review Message-ID: <200603111036.k2BAaJDQ087637@repoman.freebsd.org>
next in thread | raw e-mail | index | archive | help
http://perforce.freebsd.org/chv.cgi?CH=93144 Change 93144 by kmacy@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;
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200603111036.k2BAaJDQ087637>