FreeBSD/sys/compat/ndis/kern_windrv.c
/*
 * Context switch from Windows back to UNIX. Restore %fs to
 * its previous value. This always occurs after a call to
 * ctxsw_utow().
 */
Context switch from Windows back to UNIX. Restore %fs to
its previous value. This always occurs after a call to
ctxsw_utow().
Context switch from Windows back to UNIX . Restore %fs to its previous value . This always occurs after a call to ctxsw_utow () .
void
ctxsw_wtou(void)
{
	struct tid		*t;
	x86_critical_enter();
	t = x86_gettid();
	x86_setfs(t->tid_oldfs);
	sched_unpin();
	x86_critical_exit();
#ifdef EXTRA_SANITY
	if (t->tid_cpu != curthread->td_oncpu)
		panic("ctxsw GOT MOVED TO OTHER CPU!");
#endif
}
void ctxsw_wtou ( void ) { struct tid * t ; x86_critical_enter ( ) ; t = x86_gettid ( ) ; x86_setfs ( t -> tid_oldfs ) ; sched_unpin ( ) ; x86_critical_exit ( ) ; #ifdef EXTRA_SANITY if ( t -> tid_cpu != curthread -> td_oncpu ) panic ( " " ) ; #endif }
Context switch from Windows back to UNIX.
Context switch from Windows back to UNIX .
/* Welcome back to UNIX land, we missed you. */