Changeset 764c302 in mainline
- 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
- Files:
-
- 9 edited
Legend:
- Unmodified
- Added
- Removed
-
kernel/generic/include/arch.h
r42d3be3 r764c302 61 61 cpu_t *cpu; /**< Executing cpu. */ 62 62 as_t *as; /**< Current address space. */ 63 context_id_t context; /**< Current security context. */ 63 64 }; 64 65 -
kernel/generic/include/proc/scheduler.h
r42d3be3 r764c302 27 27 */ 28 28 29 29 /** @addtogroup genericproc 30 30 * @{ 31 31 */ … … 70 70 #endif 71 71 72 72 /** @} 73 73 */ 74 -
kernel/generic/include/proc/task.h
r42d3be3 r764c302 27 27 */ 28 28 29 29 /** @addtogroup genericproc 30 30 * @{ 31 31 */ … … 59 59 as_t *as; /**< Address space. */ 60 60 task_id_t taskid; /**< Unique identity of task */ 61 context_id_t context; /**< Task security context */ 61 62 62 63 /** If this is true, new threads can become part of the task. */ -
kernel/generic/include/proc/thread.h
r42d3be3 r764c302 27 27 */ 28 28 29 29 /** @addtogroup genericproc 30 30 * @{ 31 31 */ … … 147 147 int priority; /**< Thread's priority. Implemented as index to CPU->rq */ 148 148 uint32_t tid; /**< Thread ID. */ 149 context_id_t context; /**< Thread security context */ 149 150 150 151 thread_arch_t arch; /**< Architecture-specific data. */ … … 193 194 #endif 194 195 195 196 /** @} 196 197 */ 197 -
kernel/generic/include/proc/uarg.h
r42d3be3 r764c302 27 27 */ 28 28 29 29 /** @addtogroup genericproc 30 30 * @{ 31 31 */ … … 49 49 #endif 50 50 51 51 /** @} 52 52 */ 53 -
kernel/generic/include/typedefs.h
r42d3be3 r764c302 46 46 47 47 typedef unsigned long long task_id_t; 48 typedef unsigned long context_id_t; 48 49 49 50 typedef struct cpu_info cpu_info_t; -
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.