Changeset 473d5d2 in mainline for kernel/generic/src/proc/task.c


Ignore:
Timestamp:
2011-05-19T16:44:47Z (13 years ago)
Author:
Martin Decky <martin@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
bcaca55
Parents:
9c757820
Message:

add magic value to THE structure for better stack/memory corruption detection
rename (security) contexts to containers (a slightly less overloaded term within SPARTAN kernel)

File:
1 edited

Legend:

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

    r9c757820 r473d5d2  
    190190        str_cpy(task->name, TASK_NAME_BUFLEN, name);
    191191       
    192         task->context = CONTEXT;
     192        task->container = CONTAINER;
    193193        task->capabilities = 0;
    194194        task->ucycles = 0;
     
    211211       
    212212        if ((ipc_phone_0) &&
    213             (context_check(ipc_phone_0->task->context, task->context)))
     213            (container_check(ipc_phone_0->task->container, task->container)))
    214214                ipc_phone_connect(&task->phones[0], ipc_phone_0);
    215215       
     
    584584                printf("%-8" PRIu64 " %-14s %-5" PRIu32 " %10p %10p"
    585585                    " %9" PRIu64 "%c %9" PRIu64 "%c\n", task->taskid,
    586                     task->name, task->context, task, task->as,
     586                    task->name, task->container, task, task->as,
    587587                    ucycles, usuffix, kcycles, ksuffix);
    588588#endif
     
    595595        else
    596596                printf("%-8" PRIu64 " %-14s %-5" PRIu32 " %18p %18p\n",
    597                     task->taskid, task->name, task->context, task, task->as);
     597                    task->taskid, task->name, task->container, task, task->as);
    598598#endif
    599599       
     
    625625                printf("[id    ] [threads] [calls] [callee\n");
    626626        else
    627                 printf("[id    ] [name        ] [ctx] [address ] [as      ]"
     627                printf("[id    ] [name        ] [ctn] [address ] [as      ]"
    628628                    " [ucycles ] [kcycles ]\n");
    629629#endif
     
    634634                    " [callee\n");
    635635        else
    636                 printf("[id    ] [name        ] [ctx] [address         ]"
     636                printf("[id    ] [name        ] [ctn] [address         ]"
    637637                    " [as              ]\n");
    638638#endif
Note: See TracChangeset for help on using the changeset viewer.