Ignore:
File:
1 edited

Legend:

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

    r9dae191e rda1bafb  
    9595void kinit(void *arg)
    9696{
    97 #if defined(CONFIG_SMP) || defined(CONFIG_KCONSOLE)
    9897        thread_t *thread;
    99 #endif
    10098       
    10199        /*
     
    117115                thread = thread_create(kmp, NULL, TASK, THREAD_FLAG_WIRED, "kmp", true);
    118116                if (thread != NULL) {
    119                         spinlock_lock(&thread->lock);
     117                        irq_spinlock_lock(&thread->lock, false);
    120118                        thread->cpu = &cpus[0];
    121                         spinlock_unlock(&thread->lock);
     119                        irq_spinlock_unlock(&thread->lock, false);
    122120                        thread_ready(thread);
    123121                } else
     
    137135                        thread = thread_create(kcpulb, NULL, TASK, THREAD_FLAG_WIRED, "kcpulb", true);
    138136                        if (thread != NULL) {
    139                                 spinlock_lock(&thread->lock);
     137                                irq_spinlock_lock(&thread->lock, false);
    140138                                thread->cpu = &cpus[i];
    141                                 spinlock_unlock(&thread->lock);
     139                                irq_spinlock_unlock(&thread->lock, false);
    142140                                thread_ready(thread);
    143141                        } else
     
    201199                str_cpy(namebuf + INIT_PREFIX_LEN,
    202200                    TASK_NAME_BUFLEN - INIT_PREFIX_LEN, name);
    203 
     201               
    204202                int rc = program_create_from_image((void *) init.tasks[i].addr,
    205203                    namebuf, &programs[i]);
     
    224222                }
    225223        }
    226 
     224       
    227225        /*
    228226         * Run user tasks.
     
    232230                        program_ready(&programs[i]);
    233231        }
    234 
     232       
    235233#ifdef CONFIG_KCONSOLE
    236234        if (!stdin) {
Note: See TracChangeset for help on using the changeset viewer.