Date: Thu, 27 Nov 2003 15:39:19 -0800 (PST) From: Marcel Moolenaar <marcel@FreeBSD.org> To: Perforce Change Reviews <perforce@freebsd.org> Subject: PERFORCE change 43106 for review Message-ID: <200311272339.hARNdJWq051684@repoman.freebsd.org>
next in thread | raw e-mail | index | archive | help
http://perforce.freebsd.org/chv.cgi?CH=43106 Change 43106 by marcel@marcel_nfs on 2003/11/27 15:39:11 Call kse_switchin() to restore syscall contexts. The next step is to use kse_switchin() for asynchronous contexts as well. Affected files ... .. //depot/projects/ia64/lib/libpthread/arch/ia64/include/pthread_md.h#8 edit Differences ... ==== //depot/projects/ia64/lib/libpthread/arch/ia64/include/pthread_md.h#8 (text+ko) ==== @@ -232,6 +232,12 @@ mc->mc_special.isr = (intptr_t)&tcb->tcb_tmbx; } _ia64_break_setcontext(mc); + } else if (mc->mc_flags & _MC_FLAGS_SYSCALL_CONTEXT) { + if (setmbox) + kse_switchin(mc, (long)&tcb->tcb_tmbx, + (long *)&kcb->kcb_kmbx.km_curthread); + else + kse_switchin(mc, 0, NULL); } else { if (setmbox) _ia64_restore_context(mc, (intptr_t)&tcb->tcb_tmbx,
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200311272339.hARNdJWq051684>