Rev 2470 | Rev 2502 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed
| Rev 2470 | Rev 2487 | ||
|---|---|---|---|
| Line 584... | Line 584... | ||
| 584 | /* Messing with thread structures, avoid deadlock */ |
584 | /* Messing with thread structures, avoid deadlock */ |
| 585 | ipl = interrupts_disable(); |
585 | ipl = interrupts_disable(); |
| 586 | spinlock_lock(&threads_lock); |
586 | spinlock_lock(&threads_lock); |
| 587 | 587 | ||
| 588 | printf("tid name address state task ctx code " |
588 | printf("tid name address state task ctx code " |
| 589 | " stack cycles cpu kstack waitqueue\n"); |
589 | " stack cycles cpu waitqueue\n"); |
| 590 | printf("------ ---------- ---------- -------- ---------- --- --------" |
590 | printf("------ ---------- ---------- -------- ---------- --- --------" |
| 591 | "-- ---------- ---------- ---- ---------- ----------\n"); |
591 | "-- ---------- ---------- ---- ---------\n"); |
| 592 | 592 | ||
| 593 | for (cur = threads_btree.leaf_head.next; |
593 | for (cur = threads_btree.leaf_head.next; |
| 594 | cur != &threads_btree.leaf_head; cur = cur->next) { |
594 | cur != &threads_btree.leaf_head; cur = cur->next) { |
| 595 | btree_node_t *node; |
595 | btree_node_t *node; |
| 596 | unsigned int i; |
596 | unsigned int i; |
| Line 614... | Line 614... | ||
| 614 | printf("%-4zd", t->cpu->id); |
614 | printf("%-4zd", t->cpu->id); |
| 615 | else |
615 | else |
| 616 | printf("none"); |
616 | printf("none"); |
| 617 | 617 | ||
| 618 | if (t->state == Sleeping) |
618 | if (t->state == Sleeping) |
| 619 | printf(" %#10zx %#10zx", t->kstack, |
- | |
| 620 | t->sleep_queue); |
619 | printf(" %#10zx", t->sleep_queue); |
| 621 | 620 | ||
| 622 | printf("\n"); |
621 | printf("\n"); |
| 623 | } |
622 | } |
| 624 | } |
623 | } |
| 625 | 624 | ||