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

Lines Matching refs:th

94 #define	INKERNELSTACK(va, th) 1
450 thread_t th, top_act;
495 th = db_default_act;
496 if (th == THREAD_NULL)
497 th = current_thread();
498 if (th == THREAD_NULL) {
503 act_list = &th->task->threads;
521 th = current_thread();
522 task = (th != THREAD_NULL)? th->task: TASK_NULL;
523 db_printf("thread 0x%x, current_thread() is 0x%x, ebp is 0x%x, eip is 0x%x\n", th, current_thread(), ddb_regs.ebp, ddb_regs.eip);
526 th = (thread_t) addr;
527 if (!db_check_act_address_valid(th)) {
531 th = db_default_act;
532 if (th == THREAD_NULL)
533 th = current_thread();
534 if (th == THREAD_NULL) {
541 addr, thcount, th->task->thread_count);
545 // kprintf("th is %x, current_thread() is %x, ddb_regs.ebp is %x ddb_regs.eip is %x\n", th, current_thread(), ddb_regs.ebp, ddb_regs.eip);
546 task = th->task;
547 if (th == current_thread()) {
551 if (th->machine.pcb == 0) {
555 if (!th) {
560 else if ( (th->continuation != THREAD_CONTINUE_NULL) ||
561 th->kernel_stack == 0) {
564 db_task_printsym((db_expr_t)th->continuation,
568 iss32 = (x86_saved_state32_t *)th->machine.pcb->iss;
578 cpu_datap(cpu)->cpu_active_thread == th &&
589 iss32 = (x86_saved_state32_t *)th->machine.pcb->iss;
598 iks = STACK_IKS(th->kernel_stack);
631 th = (db_default_act)? db_default_act: current_thread();
632 task = (th != THREAD_NULL)? th->task: TASK_NULL;
639 if (!INKERNELSTACK((unsigned)frame, th)) {
766 (user_frame) ? th : THREAD_NULL);
769 if (th->task_threads.prev != THREAD_NULL) {
771 top_act = th;
772 th = th->task_threads.prev;
774 th,
775 db_lookup_task(th->task),
776 db_lookup_task_act(th->task, th));
782 if (!INKERNELSTACK(lastframe, th) ||
783 !INKERNELSTACK((unsigned)frame, th))
791 if ((INKERNELSTACK(lastframe, th) &&
792 !INKERNELSTACK(frame, th)))
802 th = top_act;
803 th = (thread_t) queue_next(&th->task_threads);
804 if (! queue_end(act_list, (queue_entry_t) th)) {
806 addr = (db_expr_t) th;