Subversion Repositories HelenOS-historic

Rev

Rev 1104 | Rev 1138 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 1104 Rev 1115
Line 413... Line 413...
413
    ipl = interrupts_disable();
413
    ipl = interrupts_disable();
414
    spinlock_lock(&threads_lock);
414
    spinlock_lock(&threads_lock);
415
 
415
 
416
    for (cur=threads_head.next; cur!=&threads_head; cur=cur->next) {
416
    for (cur=threads_head.next; cur!=&threads_head; cur=cur->next) {
417
        t = list_get_instance(cur, thread_t, threads_link);
417
        t = list_get_instance(cur, thread_t, threads_link);
418
        printf("%s: address=%P, tid=%d, state=%s\n\ttask=%P, code=%P, stack=%P, cpu=",
418
        printf("%s: address=%P, tid=%d, state=%s, task=%P, code=%P, stack=%P, cpu=",
419
            t->name, t, t->tid, thread_states[t->state], t->task, t->thread_code, t->kstack);
419
            t->name, t, t->tid, thread_states[t->state], t->task, t->thread_code, t->kstack);
420
        if (t->cpu)
420
        if (t->cpu)
421
            printf("cpu%d ", t->cpu->id);
421
            printf("cpu%d ", t->cpu->id);
422
        else
422
        else
423
            printf("none");
423
            printf("none");