Changeset fbcfd458 in mainline for generic/src/proc


Ignore:
Timestamp:
2006-03-18T23:02:08Z (20 years ago)
Author:
Ondrej Palkovsky <ondrap@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
b4b45210
Parents:
ba81cab
Message:

Untested better IPC functions.

  • There is some bug in MIPS, unpredicatbly sometimes the thread gets mapped

different frame for stack.

Location:
generic/src/proc
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • generic/src/proc/scheduler.c

    rba81cab rfbcfd458  
    353353                switch (THREAD->state) {
    354354                    case Running:
    355                         THREAD->state = Ready;
    356355                        spinlock_unlock(&THREAD->lock);
    357356                        thread_ready(THREAD);
  • generic/src/proc/task.c

    rba81cab rfbcfd458  
    160160                t = list_get_instance(cur, task_t, tasks_link);
    161161                spinlock_lock(&t->lock);
    162                 printf("%s: address=%P, taskid=%Q, as=%P, ActiveCalls: %d",
     162                printf("%s: address=%P, taskid=%Q\n\tas=%P, ActiveCalls: %d",
    163163                        t->name, t, t->taskid, t->as, atomic_get(&t->active_calls));
    164164                for (i=0; i < IPC_MAX_PHONES; i++) {
  • generic/src/proc/thread.c

    rba81cab rfbcfd458  
    184184        spinlock_lock(&t->lock);
    185185
     186        ASSERT(! (t->state == Ready));
     187
    186188        i = (t->priority < RQ_COUNT -1) ? ++t->priority : t->priority;
    187189       
     
    416418        for (cur=threads_head.next; cur!=&threads_head; cur=cur->next) {
    417419                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=",
    419421                        t->name, t, t->tid, thread_states[t->state], t->task, t->thread_code, t->kstack);
    420422                if (t->cpu)
Note: See TracChangeset for help on using the changeset viewer.