Lines Matching defs:dg
854 struct dispatcher_generic *dg = get_dispatcher_generic(curdispatcher());
855 thread_mutex_lock(&dg->cleanupthread_lock);
856 if(dg->cleanupthread == NULL) {
857 dg->cleanupthread =
861 thread_init(curdispatcher(), dg->cleanupthread);
863 registers_set_initial(&dg->cleanupthread->regs, dg->cleanupthread,
865 (lvaddr_t)dg->cleanupthread->stack_top, (lvaddr_t)me,
873 thread_enqueue(dg->cleanupthread, &disp_gen->runq);
875 disp_gen->current = dg->cleanupthread;
876 disp_resume(handle, &dg->cleanupthread->regs);