Changeset a0bb10ef in mainline
- Timestamp:
- 2006-03-23T11:49:11Z (19 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- 303c94c
- Parents:
- 281b607
- Location:
- generic/src/proc
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
generic/src/proc/scheduler.c
r281b607 ra0bb10ef 563 563 #endif 564 564 t->flags |= X_STOLEN; 565 t->state = Entering; 565 566 spinlock_unlock(&t->lock); 566 567 -
generic/src/proc/task.c
r281b607 ra0bb10ef 118 118 119 119 as = as_create(0); 120 ASSERT(as); 120 121 121 122 rc = elf_load((elf_header_t *) program_addr, as); … … 133 134 134 135 task = task_create(as, name); 135 t = thread_create(uinit, kernel_uarg, task, 0, "uinit");136 136 ASSERT(task); 137 137 138 /* 138 139 * Create the data as_area. 139 140 */ 140 141 a = as_area_create(as, AS_AREA_READ | AS_AREA_WRITE, PAGE_SIZE, USTACK_ADDRESS); 142 143 t = thread_create(uinit, kernel_uarg, task, 0, "uinit"); 144 ASSERT(t); 145 thread_ready(t); 141 146 142 thread_ready(t);143 144 147 return task; 145 148 } … … 160 163 t = list_get_instance(cur, task_t, tasks_link); 161 164 spinlock_lock(&t->lock); 162 printf("%s: address=%P, taskid=%Q \n\tas=%P, ActiveCalls: %d",165 printf("%s: address=%P, taskid=%Q, as=%P, ActiveCalls: %d", 163 166 t->name, t, t->taskid, t->as, atomic_get(&t->active_calls)); 164 167 for (i=0; i < IPC_MAX_PHONES; i++) { -
generic/src/proc/thread.c
r281b607 ra0bb10ef 416 416 for (cur=threads_head.next; cur!=&threads_head; cur=cur->next) { 417 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 419 t->name, t, t->tid, thread_states[t->state], t->task, t->thread_code, t->kstack); 420 420 if (t->cpu)
Note:
See TracChangeset
for help on using the changeset viewer.