/trunk/kernel/generic/src/proc/the.c |
---|
58,6 → 58,7 |
the->thread = NULL; |
the->task = NULL; |
the->as = NULL; |
the->context = 0; |
} |
/** Copy THE structure |
/trunk/kernel/generic/src/proc/task.c |
---|
115,6 → 115,7 |
ta->name = name; |
ta->main_thread = NULL; |
ta->refcount = 0; |
ta->context = THE->context; |
ta->capabilities = 0; |
ta->accept_new_threads = true; |
355,8 → 356,8 |
t = (task_t *) node->value[i]; |
spinlock_lock(&t->lock); |
printf("%s(%lld): address=%#zx, as=%#zx, ActiveCalls: %zd", |
t->name, t->taskid, t, t->as, atomic_get(&t->active_calls)); |
printf("%s(%lld): context=%ld, address=%#zx, as=%#zx, ActiveCalls: %zd", |
t->name, t->taskid, t->context, t, t->as, atomic_get(&t->active_calls)); |
for (j=0; j < IPC_MAX_PHONES; j++) { |
if (t->phones[j].callee) |
printf(" Ph(%zd): %#zx ", j, t->phones[j].callee); |
/trunk/kernel/generic/src/proc/thread.c |
---|
318,6 → 318,7 |
memcpy(t->name, name, THREAD_NAME_BUFLEN); |
t->context = THE->context; |
t->thread_code = func; |
t->thread_arg = arg; |
t->ticks = -1; |
533,8 → 534,8 |
thread_t *t; |
t = (thread_t *) node->value[i]; |
printf("%s: address=%#zx, tid=%zd, state=%s, task=%#zx, code=%#zx, stack=%#zx, cpu=", |
t->name, t, t->tid, thread_states[t->state], t->task, t->thread_code, t->kstack); |
printf("%s: address=%#zx, tid=%zd, context=%ld, state=%s, task=%#zx, code=%#zx, stack=%#zx, cpu=", |
t->name, t, t->tid, t->context, thread_states[t->state], t->task, t->thread_code, t->kstack); |
if (t->cpu) |
printf("cpu%zd", t->cpu->id); |
else |