Subversion Repositories HelenOS

Rev

Rev 3060 | Rev 3222 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 3060 Rev 3181
Line 144... Line 144...
144
    arch_post_smp_init();
144
    arch_post_smp_init();
145
 
145
 
146
    /*
146
    /*
147
     * Create kernel console.
147
     * Create kernel console.
148
     */
148
     */
149
    t = thread_create(kconsole, (void *) "kconsole", TASK, 0, "kconsole", false);
149
    t = thread_create(kconsole, (void *) "kconsole", TASK, 0, "kconsole",
-
 
150
        false);
150
    if (t)
151
    if (t)
151
        thread_ready(t);
152
        thread_ready(t);
152
    else
153
    else
153
        panic("thread_create/kconsole\n");
154
        panic("thread_create/kconsole\n");
154
 
155
 
Line 164... Line 165...
164
        if (init.tasks[i].addr % FRAME_SIZE) {
165
        if (init.tasks[i].addr % FRAME_SIZE) {
165
            printf("init[%" PRIc "].addr is not frame aligned", i);
166
            printf("init[%" PRIc "].addr is not frame aligned", i);
166
            continue;
167
            continue;
167
        }
168
        }
168
 
169
 
169
        threads[i] = thread_create_program(
170
        threads[i] = thread_create_program((void *) init.tasks[i].addr,
170
            (void *) init.tasks[i].addr, "uspace");
171
            "uspace");
171
       
172
       
172
        if (threads[i] != NULL) {
173
        if (threads[i] != NULL) {
173
            /*
174
            /*
174
             * Set capabilities to init userspace tasks.
175
             * Set capabilities to init userspace tasks.
175
             */
176
             */
Line 181... Line 182...
181
        } else {
182
        } else {
182
            int rd = init_rd((rd_header_t *) init.tasks[i].addr,
183
            int rd = init_rd((rd_header_t *) init.tasks[i].addr,
183
                init.tasks[i].size);
184
                init.tasks[i].size);
184
           
185
           
185
            if (rd != RE_OK)
186
            if (rd != RE_OK)
186
                printf("Init binary %" PRIc " not used, error code %d.\n", i, rd);
187
                printf("Init binary %" PRIc " not used, error "
-
 
188
                    "code %d.\n", i, rd);
187
        }
189
        }
188
    }
190
    }
189
   
191
   
190
    /*
192
    /*
191
     * Run user tasks with reasonable delays
193
     * Run user tasks with reasonable delays