/trunk/kernel/generic/src/main/kinit.c |
---|
118,7 → 118,7 |
#ifdef CONFIG_SMP |
if (config.cpu_count > 1) { |
int i; |
unsigned int i; |
/* |
* For each CPU, create its load balancing thread. |
146,7 → 146,7 |
/* |
* Create kernel console. |
*/ |
t = thread_create(kconsole, "kconsole", TASK, 0, "kconsole", false); |
t = thread_create(kconsole, (void *) "kconsole", TASK, 0, "kconsole", false); |
if (t) |
thread_ready(t); |
else |
/trunk/kernel/generic/src/proc/scheduler.c |
---|
144,7 → 144,7 |
spinlock_unlock(&THREAD->lock); |
spinlock_unlock(&CPU->lock); |
THREAD->saved_fpu_context = |
slab_alloc(fpu_context_slab, 0); |
(fpu_context_t *) slab_alloc(fpu_context_slab, 0); |
/* We may have switched CPUs during slab_alloc */ |
goto restart; |
} |
537,7 → 537,8 |
void kcpulb(void *arg) |
{ |
thread_t *t; |
int count, average, i, j, k = 0; |
int count, average, j, k = 0; |
unsigned int i; |
ipl_t ipl; |
/* |
689,7 → 690,7 |
void sched_print_list(void) |
{ |
ipl_t ipl; |
int cpu,i; |
unsigned int cpu, i; |
runq_t *r; |
thread_t *t; |
link_t *cur; |
697,7 → 698,7 |
/* We are going to mess with scheduler structures, |
* let's not be interrupted */ |
ipl = interrupts_disable(); |
for (cpu=0;cpu < config.cpu_count; cpu++) { |
for (cpu = 0; cpu < config.cpu_count; cpu++) { |
if (!cpus[cpu].active) |
continue; |
/trunk/kernel/generic/src/proc/task.c |
---|
393,7 → 393,7 |
for (cur = tasks_btree.leaf_head.next; cur != &tasks_btree.leaf_head; |
cur = cur->next) { |
btree_node_t *node; |
int i; |
unsigned int i; |
node = list_get_instance(cur, btree_node_t, leaf_link); |
for (i = 0; i < node->keys; i++) { |
/trunk/kernel/generic/src/proc/thread.c |
---|
166,7 → 166,7 |
# endif |
#endif |
t->kstack = frame_alloc(STACK_FRAMES, FRAME_KA | kmflags); |
t->kstack = (uint8_t *) frame_alloc(STACK_FRAMES, FRAME_KA | kmflags); |
if (! t->kstack) { |
#ifdef ARCH_HAS_FPU |
if (t->saved_fpu_context) |
568,7 → 568,7 |
for (cur = threads_btree.leaf_head.next; |
cur != &threads_btree.leaf_head; cur = cur->next) { |
btree_node_t *node; |
int i; |
unsigned int i; |
node = list_get_instance(cur, btree_node_t, leaf_link); |
for (i = 0; i < node->keys; i++) { |