Changeset cfffb290 in mainline for kernel/generic/src/proc
- Timestamp:
- 2006-08-05T16:05:25Z (19 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- e2882a7
- Parents:
- b006a2c8
- Location:
- kernel/generic/src/proc
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
kernel/generic/src/proc/task.c
rb006a2c8 rcfffb290 116 116 ta->main_thread = NULL; 117 117 ta->refcount = 0; 118 ta->context = THE->context;118 ta->context = CONTEXT; 119 119 120 120 ta->capabilities = 0; … … 122 122 123 123 ipc_answerbox_init(&ta->answerbox); 124 for (i =0; i < IPC_MAX_PHONES;i++)124 for (i = 0; i < IPC_MAX_PHONES; i++) 125 125 ipc_phone_init(&ta->phones[i]); 126 if ( ipc_phone_0)126 if ((ipc_phone_0) && (context_check(ipc_phone_0->task->context, ta->context))) 127 127 ipc_phone_connect(&ta->phones[0], ipc_phone_0); 128 128 atomic_set(&ta->active_calls, 0); -
kernel/generic/src/proc/the.c
rb006a2c8 rcfffb290 59 59 the->task = NULL; 60 60 the->as = NULL; 61 the->context = 0;62 61 } 63 62 -
kernel/generic/src/proc/thread.c
rb006a2c8 rcfffb290 319 319 memcpy(t->name, name, THREAD_NAME_BUFLEN); 320 320 321 t->context = THE->context;322 321 t->thread_code = func; 323 322 t->thread_arg = arg; … … 535 534 536 535 t = (thread_t *) node->value[i]; 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);536 printf("%s: address=%#zx, tid=%zd, state=%s, task=%#zx, context=%ld, code=%#zx, stack=%#zx, cpu=", 537 t->name, t, t->tid, thread_states[t->state], t->task, t->task->context, t->thread_code, t->kstack); 539 538 if (t->cpu) 540 539 printf("cpu%zd", t->cpu->id);
Note:
See TracChangeset
for help on using the changeset viewer.