Subversion Repositories HelenOS-historic

Rev

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

Rev 1083 Rev 1086
Line 181... Line 181...
181
 
181
 
182
    ipl = interrupts_disable();
182
    ipl = interrupts_disable();
183
 
183
 
184
    spinlock_lock(&t->lock);
184
    spinlock_lock(&t->lock);
185
 
185
 
-
 
186
    ASSERT(! (t->state == Ready));
-
 
187
 
186
    i = (t->priority < RQ_COUNT -1) ? ++t->priority : t->priority;
188
    i = (t->priority < RQ_COUNT -1) ? ++t->priority : t->priority;
187
   
189
   
188
    cpu = CPU;
190
    cpu = CPU;
189
    if (t->flags & X_WIRED) {
191
    if (t->flags & X_WIRED) {
190
        cpu = t->cpu;
192
        cpu = t->cpu;
Line 413... Line 415...
413
    ipl = interrupts_disable();
415
    ipl = interrupts_disable();
414
    spinlock_lock(&threads_lock);
416
    spinlock_lock(&threads_lock);
415
 
417
 
416
    for (cur=threads_head.next; cur!=&threads_head; cur=cur->next) {
418
    for (cur=threads_head.next; cur!=&threads_head; cur=cur->next) {
417
        t = list_get_instance(cur, thread_t, threads_link);
419
        t = list_get_instance(cur, thread_t, threads_link);
418
        printf("%s: address=%P, tid=%d, state=%s, task=%P, code=%P, stack=%P, cpu=",
420
        printf("%s: address=%P, tid=%d, state=%s\n\ttask=%P, code=%P, stack=%P, cpu=",
419
            t->name, t, t->tid, thread_states[t->state], t->task, t->thread_code, t->kstack);
421
            t->name, t, t->tid, thread_states[t->state], t->task, t->thread_code, t->kstack);
420
        if (t->cpu)
422
        if (t->cpu)
421
            printf("cpu%d ", t->cpu->id);
423
            printf("cpu%d ", t->cpu->id);
422
        else
424
        else
423
            printf("none");
425
            printf("none");