Changeset a0bb10ef in mainline for generic/src/proc/task.c
- 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
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
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++) {
Note:
See TracChangeset
for help on using the changeset viewer.