kse_switchin ABI was changed in kernel.

This commit is contained in:
davidxu 2004-07-12 07:41:01 +00:00
parent 351df4e348
commit 404e9eb472
2 changed files with 4 additions and 6 deletions

View File

@ -234,10 +234,9 @@ _thread_switch(struct kcb *kcb, struct tcb *tcb, int setmbox)
_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);
kse_switchin(&tcb->tcb_tmbx, KSE_SWITCHIN_SETTMBX);
else
kse_switchin(mc, 0L, NULL);
kse_switchin(&tcb->tcb_tmbx, 0);
} else {
if (setmbox)
_ia64_restore_context(mc, (intptr_t)&tcb->tcb_tmbx,

View File

@ -234,10 +234,9 @@ _thread_switch(struct kcb *kcb, struct tcb *tcb, int setmbox)
_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);
kse_switchin(&tcb->tcb_tmbx, KSE_SWITCHIN_SETTMBX);
else
kse_switchin(mc, 0L, NULL);
kse_switchin(&tcb->tcb_tmbx, 0);
} else {
if (setmbox)
_ia64_restore_context(mc, (intptr_t)&tcb->tcb_tmbx,