Changeset fbcfd458 in mainline for generic/src/proc
- Timestamp:
- 2006-03-18T23:02:08Z (20 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- b4b45210
- Parents:
- ba81cab
- Location:
- generic/src/proc
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
generic/src/proc/scheduler.c
rba81cab rfbcfd458 353 353 switch (THREAD->state) { 354 354 case Running: 355 THREAD->state = Ready;356 355 spinlock_unlock(&THREAD->lock); 357 356 thread_ready(THREAD); -
generic/src/proc/task.c
rba81cab rfbcfd458 160 160 t = list_get_instance(cur, task_t, tasks_link); 161 161 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", 163 163 t->name, t, t->taskid, t->as, atomic_get(&t->active_calls)); 164 164 for (i=0; i < IPC_MAX_PHONES; i++) { -
generic/src/proc/thread.c
rba81cab rfbcfd458 184 184 spinlock_lock(&t->lock); 185 185 186 ASSERT(! (t->state == Ready)); 187 186 188 i = (t->priority < RQ_COUNT -1) ? ++t->priority : t->priority; 187 189 … … 416 418 for (cur=threads_head.next; cur!=&threads_head; cur=cur->next) { 417 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 421 t->name, t, t->tid, thread_states[t->state], t->task, t->thread_code, t->kstack); 420 422 if (t->cpu)
Note:
See TracChangeset
for help on using the changeset viewer.
