• Home
  • History
  • Annotate
  • Raw
  • Download
  • only in /macosx-10.5.8/xnu-1228.15.4/osfmk/ppc/

Lines Matching refs:th

242 	thread_t 		th;
248 th = current_thread(); /* Get our thread */
252 if ( th->machine.bbDescAddr ) return KERN_FAILURE; /* Bail if already authorized... */
262 ret = vm_map_wire(th->map, /* Kernel wire the descriptor in the user's map */
273 pmap_find_phys(th->map->pmap, CAST_USER_ADDR_T(Desc_TableStart));
277 (void) vm_map_unwire(th->map, /* No, unwire the descriptor */
290 th->machine.bbDescAddr = (unsigned int)kerndescaddr+origdescoffset; /* Set kernel address of the table */
291 th->machine.bbUserDA = (unsigned int)Desc_TableStart; /* Set user address of the table */
292 th->machine.bbTableStart = (unsigned int)TWI_TableStart; /* Set address of the trap table */
293 th->machine.bbTaskID = (unsigned int)taskID; /* Assign opaque task ID */
294 th->machine.bbTaskEnv = 0; /* Clean task environment data */
295 th->machine.emPendRupts = 0; /* Clean pending 'rupt count */
296 th->machine.bbTrap = bttd->TrapVector; /* Remember trap vector */
297 th->machine.bbSysCall = bttd->SysCallVector; /* Remember syscall vector */
298 th->machine.bbInterrupt = bttd->InterruptVector; /* Remember interrupt vector */
299 th->machine.bbPending = bttd->PendingIntVector; /* Remember pending vector */
300 th->machine.specFlags &= ~(bbNoMachSC | bbPreemptive); /* Make sure mach SCs are enabled and we are not marked preemptive */
301 th->machine.specFlags |= bbThread; /* Set that we are Classic thread */
304 th->machine.specFlags |= bbPreemptive; /* Yes, remember it */
308 getPerProc()->spcFlags = th->machine.specFlags; /* Copy the flags */
314 tbeproc(th->task->bsd_info);