Changeset 764c302 in mainline for kernel/generic/src
- Timestamp:
- 2006-07-28T23:25:10Z (19 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- c049309
- Parents:
- 42d3be3
- Location:
- kernel/generic/src/proc
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
kernel/generic/src/proc/task.c
r42d3be3 r764c302 116 116 ta->main_thread = NULL; 117 117 ta->refcount = 0; 118 ta->context = THE->context; 118 119 119 120 ta->capabilities = 0; … … 356 357 357 358 spinlock_lock(&t->lock); 358 printf("%s(%lld): address=%#zx, as=%#zx, ActiveCalls: %zd",359 t->name, t->taskid, t , t->as, atomic_get(&t->active_calls));359 printf("%s(%lld): context=%ld, address=%#zx, as=%#zx, ActiveCalls: %zd", 360 t->name, t->taskid, t->context, t, t->as, atomic_get(&t->active_calls)); 360 361 for (j=0; j < IPC_MAX_PHONES; j++) { 361 362 if (t->phones[j].callee) -
kernel/generic/src/proc/the.c
r42d3be3 r764c302 59 59 the->task = NULL; 60 60 the->as = NULL; 61 the->context = 0; 61 62 } 62 63 -
kernel/generic/src/proc/thread.c
r42d3be3 r764c302 124 124 static int thr_constructor(void *obj, int kmflags) 125 125 { 126 thread_t *t = (thread_t *) obj;126 thread_t *t = (thread_t *) obj; 127 127 128 128 spinlock_initialize(&t->lock, "thread_t_lock"); … … 156 156 static int thr_destructor(void *obj) 157 157 { 158 thread_t *t = (thread_t *) obj;158 thread_t *t = (thread_t *) obj; 159 159 160 160 frame_free(KA2PA(t->kstack)); … … 300 300 301 301 /* Not needed, but good for debugging */ 302 memsetb((uintptr_t) t->kstack, THREAD_STACK_SIZE * 1<<STACK_FRAMES, 0);302 memsetb((uintptr_t) t->kstack, THREAD_STACK_SIZE * 1 << STACK_FRAMES, 0); 303 303 304 304 ipl = interrupts_disable(); … … 319 319 memcpy(t->name, name, THREAD_NAME_BUFLEN); 320 320 321 t->context = THE->context; 321 322 t->thread_code = func; 322 323 t->thread_arg = arg; … … 534 535 535 536 t = (thread_t *) node->value[i]; 536 printf("%s: address=%#zx, tid=%zd, state=%s, task=%#zx, code=%#zx, stack=%#zx, cpu=",537 t->name, t, t->tid, t hread_states[t->state], t->task, t->thread_code, t->kstack);537 printf("%s: address=%#zx, tid=%zd, context=%ld, state=%s, task=%#zx, code=%#zx, stack=%#zx, cpu=", 538 t->name, t, t->tid, t->context, thread_states[t->state], t->task, t->thread_code, t->kstack); 538 539 if (t->cpu) 539 540 printf("cpu%zd", t->cpu->id);
Note:
See TracChangeset
for help on using the changeset viewer.