Ignore:
File:
1 edited

Legend:

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

    rda1bafb r9dae191e  
    9595void kinit(void *arg)
    9696{
     97#if defined(CONFIG_SMP) || defined(CONFIG_KCONSOLE)
    9798        thread_t *thread;
     99#endif
    98100       
    99101        /*
     
    115117                thread = thread_create(kmp, NULL, TASK, THREAD_FLAG_WIRED, "kmp", true);
    116118                if (thread != NULL) {
    117                         irq_spinlock_lock(&thread->lock, false);
     119                        spinlock_lock(&thread->lock);
    118120                        thread->cpu = &cpus[0];
    119                         irq_spinlock_unlock(&thread->lock, false);
     121                        spinlock_unlock(&thread->lock);
    120122                        thread_ready(thread);
    121123                } else
     
    135137                        thread = thread_create(kcpulb, NULL, TASK, THREAD_FLAG_WIRED, "kcpulb", true);
    136138                        if (thread != NULL) {
    137                                 irq_spinlock_lock(&thread->lock, false);
     139                                spinlock_lock(&thread->lock);
    138140                                thread->cpu = &cpus[i];
    139                                 irq_spinlock_unlock(&thread->lock, false);
     141                                spinlock_unlock(&thread->lock);
    140142                                thread_ready(thread);
    141143                        } else
     
    199201                str_cpy(namebuf + INIT_PREFIX_LEN,
    200202                    TASK_NAME_BUFLEN - INIT_PREFIX_LEN, name);
    201                
     203
    202204                int rc = program_create_from_image((void *) init.tasks[i].addr,
    203205                    namebuf, &programs[i]);
     
    222224                }
    223225        }
    224        
     226
    225227        /*
    226228         * Run user tasks.
     
    230232                        program_ready(&programs[i]);
    231233        }
    232        
     234
    233235#ifdef CONFIG_KCONSOLE
    234236        if (!stdin) {
Note: See TracChangeset for help on using the changeset viewer.