Ignore:
File:
1 edited

Legend:

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

    r74cb6610 r40eab9f  
    122122
    123123                thread_wire(thread, &cpus[0]);
    124                 thread_start(thread);
     124                thread_ready(thread_ref(thread));
    125125                thread_join(thread);
     126                thread_put(thread);
    126127
    127128                /*
     
    135136                        if (thread != NULL) {
    136137                                thread_wire(thread, &cpus[i]);
    137                                 thread_start(thread);
    138                                 thread_detach(thread);
     138                                thread_ready(thread);
    139139                        } else
    140140                                log(LF_OTHER, LVL_ERROR,
     
    152152        thread = thread_create(kload, NULL, TASK, THREAD_FLAG_NONE,
    153153            "kload");
    154         if (thread != NULL) {
    155                 thread_start(thread);
    156                 thread_detach(thread);
    157         } else {
     154        if (thread != NULL)
     155                thread_ready(thread);
     156        else
    158157                log(LF_OTHER, LVL_ERROR, "Unable to create kload thread");
    159         }
    160158
    161159#ifdef CONFIG_KCONSOLE
     
    166164                thread = thread_create(kconsole_thread, NULL, TASK,
    167165                    THREAD_FLAG_NONE, "kconsole");
    168                 if (thread != NULL) {
    169                         thread_start(thread);
    170                         thread_detach(thread);
    171                 } else {
     166                if (thread != NULL)
     167                        thread_ready(thread);
     168                else
    172169                        log(LF_OTHER, LVL_ERROR,
    173170                            "Unable to create kconsole thread");
    174                 }
    175171        }
    176172#endif /* CONFIG_KCONSOLE */
     
    313309         */
    314310        for (i = 0; i < init.cnt; i++) {
    315                 if (programs[i].task != NULL) {
     311                if (programs[i].task != NULL)
    316312                        program_ready(&programs[i]);
    317                         task_release(programs[i].task);
    318                 }
    319313        }
    320314
Note: See TracChangeset for help on using the changeset viewer.