Rev 1820 | Rev 1854 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed
Rev 1820 | Rev 1839 | ||
---|---|---|---|
Line 316... | Line 316... | ||
316 | t->saved_context.ipl = interrupts_read(); |
316 | t->saved_context.ipl = interrupts_read(); |
317 | interrupts_restore(ipl); |
317 | interrupts_restore(ipl); |
318 | 318 | ||
319 | memcpy(t->name, name, THREAD_NAME_BUFLEN); |
319 | memcpy(t->name, name, THREAD_NAME_BUFLEN); |
320 | 320 | ||
321 | t->context = THE->context; |
- | |
322 | t->thread_code = func; |
321 | t->thread_code = func; |
323 | t->thread_arg = arg; |
322 | t->thread_arg = arg; |
324 | t->ticks = -1; |
323 | t->ticks = -1; |
325 | t->priority = -1; /* start in rq[0] */ |
324 | t->priority = -1; /* start in rq[0] */ |
326 | t->cpu = NULL; |
325 | t->cpu = NULL; |
Line 532... | Line 531... | ||
532 | node = list_get_instance(cur, btree_node_t, leaf_link); |
531 | node = list_get_instance(cur, btree_node_t, leaf_link); |
533 | for (i = 0; i < node->keys; i++) { |
532 | for (i = 0; i < node->keys; i++) { |
534 | thread_t *t; |
533 | thread_t *t; |
535 | 534 | ||
536 | t = (thread_t *) node->value[i]; |
535 | t = (thread_t *) node->value[i]; |
537 | printf("%s: address=%#zx, tid=%zd, context=%ld, state=%s, task=%#zx, code=%#zx, stack=%#zx, cpu=", |
536 | printf("%s: address=%#zx, tid=%zd, state=%s, task=%#zx, context=%ld, code=%#zx, stack=%#zx, cpu=", |
538 | t->name, t, t->tid, t->context, thread_states[t->state], t->task, t->thread_code, t->kstack); |
537 | t->name, t, t->tid, thread_states[t->state], t->task, t->task->context, t->thread_code, t->kstack); |
539 | if (t->cpu) |
538 | if (t->cpu) |
540 | printf("cpu%zd", t->cpu->id); |
539 | printf("cpu%zd", t->cpu->id); |
541 | else |
540 | else |
542 | printf("none"); |
541 | printf("none"); |
543 | if (t->state == Sleeping) { |
542 | if (t->state == Sleeping) { |