PERFORCE change 43106 for review
Marcel Moolenaar
marcel at FreeBSD.org
Thu Nov 27 15:39:21 PST 2003
http://perforce.freebsd.org/chv.cgi?CH=43106
Change 43106 by marcel at 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,
More information about the p4-projects
mailing list