Rev 2206 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed
Rev 2206 | Rev 2422 | ||
---|---|---|---|
Line 116... | Line 116... | ||
116 | */ |
116 | */ |
117 | cpu_list(); |
117 | cpu_list(); |
118 | 118 | ||
119 | #ifdef CONFIG_SMP |
119 | #ifdef CONFIG_SMP |
120 | if (config.cpu_count > 1) { |
120 | if (config.cpu_count > 1) { |
121 | unsigned int i; |
121 | count_t i; |
122 | 122 | ||
123 | /* |
123 | /* |
124 | * For each CPU, create its load balancing thread. |
124 | * For each CPU, create its load balancing thread. |
125 | */ |
125 | */ |
126 | for (i = 0; i < config.cpu_count; i++) { |
126 | for (i = 0; i < config.cpu_count; i++) { |
Line 165... | Line 165... | ||
165 | continue; |
165 | continue; |
166 | } |
166 | } |
167 | 167 | ||
168 | task_t *utask = task_run_program((void *) init.tasks[i].addr, |
168 | task_t *utask = task_run_program((void *) init.tasks[i].addr, |
169 | "uspace"); |
169 | "uspace"); |
- | 170 | ||
170 | if (utask) { |
171 | if (utask) { |
171 | /* |
172 | /* |
172 | * Set capabilities to init userspace tasks. |
173 | * Set capabilities to init userspace tasks. |
173 | */ |
174 | */ |
174 | cap_set(utask, CAP_CAP | CAP_MEM_MANAGER | |
175 | cap_set(utask, CAP_CAP | CAP_MEM_MANAGER | |