Changeset cfffb290 in mainline for kernel/generic/src/proc


Ignore:
Timestamp:
2006-08-05T16:05:25Z (19 years ago)
Author:
Martin Decky <martin@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
e2882a7
Parents:
b006a2c8
Message:

finish security context isolation

Location:
kernel/generic/src/proc
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • kernel/generic/src/proc/task.c

    rb006a2c8 rcfffb290  
    116116        ta->main_thread = NULL;
    117117        ta->refcount = 0;
    118         ta->context = THE->context;
     118        ta->context = CONTEXT;
    119119
    120120        ta->capabilities = 0;
     
    122122       
    123123        ipc_answerbox_init(&ta->answerbox);
    124         for (i=0; i < IPC_MAX_PHONES;i++)
     124        for (i = 0; i < IPC_MAX_PHONES; i++)
    125125                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)))
    127127                ipc_phone_connect(&ta->phones[0], ipc_phone_0);
    128128        atomic_set(&ta->active_calls, 0);
  • kernel/generic/src/proc/the.c

    rb006a2c8 rcfffb290  
    5959        the->task = NULL;
    6060        the->as = NULL;
    61         the->context = 0;
    6261}
    6362
  • kernel/generic/src/proc/thread.c

    rb006a2c8 rcfffb290  
    319319        memcpy(t->name, name, THREAD_NAME_BUFLEN);
    320320       
    321         t->context = THE->context;
    322321        t->thread_code = func;
    323322        t->thread_arg = arg;
     
    535534               
    536535                        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);
    539538                        if (t->cpu)
    540539                                printf("cpu%zd", t->cpu->id);
Note: See TracChangeset for help on using the changeset viewer.