Subversion Repositories HelenOS

Compare Revisions

Regard whitespace Rev 1819 → Rev 1820

/trunk/kernel/generic/include/proc/scheduler.h
71,4 → 71,3
 
/** @}
*/
 
/trunk/kernel/generic/include/proc/uarg.h
50,4 → 50,3
 
/** @}
*/
 
/trunk/kernel/generic/include/proc/task.h
58,6 → 58,7
link_t th_head; /**< List of threads contained in this task. */
as_t *as; /**< Address space. */
task_id_t taskid; /**< Unique identity of task */
context_id_t context; /**< Task security context */
 
/** If this is true, new threads can become part of the task. */
bool accept_new_threads;
/trunk/kernel/generic/include/proc/thread.h
146,6 → 146,7
 
int priority; /**< Thread's priority. Implemented as index to CPU->rq */
uint32_t tid; /**< Thread ID. */
context_id_t context; /**< Thread security context */
thread_arch_t arch; /**< Architecture-specific data. */
 
194,4 → 195,3
 
/** @}
*/
 
/trunk/kernel/generic/include/arch.h
60,6 → 60,7
task_t *task; /**< Current task. */
cpu_t *cpu; /**< Executing cpu. */
as_t *as; /**< Current address space. */
context_id_t context; /**< Current security context. */
};
 
#define THE ((the_t *)(get_stack_base()))
/trunk/kernel/generic/include/typedefs.h
45,6 → 45,7
typedef unsigned long index_t;
 
typedef unsigned long long task_id_t;
typedef unsigned long context_id_t;
 
typedef struct cpu_info cpu_info_t;
 
/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