Changeset ff14c520 in mainline for generic/src/main/kinit.c


Ignore:
Timestamp:
2006-03-16T22:31:39Z (19 years ago)
Author:
Jakub Jermar <jakub@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
93165be
Parents:
37c57f2
Message:

It is now possible to associate symbolic names with both threads and tasks.
More verbose kconsole threads, tasks and scheduler commands.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • generic/src/main/kinit.c

    r37c57f2 rff14c520  
    8181                 * Just a beautification.
    8282                 */
    83                 if ((t = thread_create(kmp, NULL, TASK, 0))) {
     83                if ((t = thread_create(kmp, NULL, TASK, 0, "kmp"))) {
    8484                        spinlock_lock(&t->lock);
    8585                        t->flags |= X_WIRED;
     
    106106                for (i = 0; i < config.cpu_count; i++) {
    107107
    108                         if ((t = thread_create(kcpulb, NULL, TASK, 0))) {
     108                        if ((t = thread_create(kcpulb, NULL, TASK, 0, "kcpulb"))) {
    109109                                spinlock_lock(&t->lock);                       
    110110                                t->flags |= X_WIRED;
     
    127127         * Create kernel console.
    128128         */
    129         if ((t = thread_create(kconsole, "kconsole", TASK, 0)))
     129        if ((t = thread_create(kconsole, "kconsole", TASK, 0, "kconsole")))
    130130                thread_ready(t);
    131131        else
     
    143143                        panic("init[%d].addr is not frame aligned", i);
    144144
    145                 utask = task_run_program((void *) init.tasks[i].addr);
     145                utask = task_run_program((void *) init.tasks[i].addr, "USPACE");
    146146                if (utask) {
    147147                        if (!ipc_phone_0)
Note: See TracChangeset for help on using the changeset viewer.