Subversion Repositories HelenOS

Rev

Rev 4012 | Rev 4020 | Go to most recent revision | Show entire file | Regard whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 4012 Rev 4014
Line 123... Line 123...
123
        } else
123
        } else
124
            panic("Unable to create kmp thread.");
124
            panic("Unable to create kmp thread.");
125
        thread_join(thread);
125
        thread_join(thread);
126
        thread_detach(thread);
126
        thread_detach(thread);
127
    }
127
    }
128
#endif /* CONFIG_SMP */
-
 
129
   
128
   
130
#ifdef CONFIG_SMP
-
 
131
    if (config.cpu_count > 1) {
129
    if (config.cpu_count > 1) {
132
        count_t i;
130
        count_t i;
133
       
131
       
134
        /*
132
        /*
135
         * For each CPU, create its load balancing thread.
133
         * For each CPU, create its load balancing thread.
Line 141... Line 139...
141
                thread->cpu = &cpus[i];
139
                thread->cpu = &cpus[i];
142
                spinlock_unlock(&thread->lock);
140
                spinlock_unlock(&thread->lock);
143
                thread_ready(thread);
141
                thread_ready(thread);
144
            } else
142
            } else
145
                printf("Unable to create kcpulb thread for cpu" PRIc "\n", i);
143
                printf("Unable to create kcpulb thread for cpu" PRIc "\n", i);
146
 
-
 
147
        }
144
        }
148
    }
145
    }
149
#endif /* CONFIG_SMP */
146
#endif /* CONFIG_SMP */
150
   
147
   
151
    /*
148
    /*
Line 183... Line 180...
183
        /*
180
        /*
184
         * Construct task name from the 'boot:' prefix and the
181
         * Construct task name from the 'boot:' prefix and the
185
         * name stored in the init structure (if any).
182
         * name stored in the init structure (if any).
186
         */
183
         */
187
 
184
       
188
        char namebuf[TASK_NAME_BUFLEN], *name;
185
        char namebuf[TASK_NAME_BUFLEN];
-
 
186
        char *name;
189
 
187
       
190
        name = init.tasks[i].name;
188
        name = init.tasks[i].name;
191
        if (name[0] == '\0') name = "<unknown>";
189
        if (name[0] == '\0')
-
 
190
            name = "<unknown>";
192
 
191
       
193
        ASSERT(TASK_NAME_BUFLEN >= BOOT_PREFIX_LEN);
192
        ASSERT(TASK_NAME_BUFLEN >= BOOT_PREFIX_LEN);
194
        strncpy(namebuf, BOOT_PREFIX, TASK_NAME_BUFLEN);
193
        strncpy(namebuf, BOOT_PREFIX, TASK_NAME_BUFLEN);
195
        strncpy(namebuf + BOOT_PREFIX_LEN, name,
194
        strncpy(namebuf + BOOT_PREFIX_LEN, name,
196
            TASK_NAME_BUFLEN - BOOT_PREFIX_LEN);
195
            TASK_NAME_BUFLEN - BOOT_PREFIX_LEN);