Changeset 4184e76 in mainline
- Timestamp:
- 2007-02-05T15:03:01Z (18 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- d8d542e
- Parents:
- b513b3e
- Location:
- kernel/generic/src
- Files:
-
- 4 edited
Legend:
- Unmodified
- Added
- Removed
-
kernel/generic/src/main/kinit.c
rb513b3e r4184e76 119 119 #ifdef CONFIG_SMP 120 120 if (config.cpu_count > 1) { 121 int i;121 unsigned int i; 122 122 123 123 /* … … 147 147 * Create kernel console. 148 148 */ 149 t = thread_create(kconsole, "kconsole", TASK, 0, "kconsole", false);149 t = thread_create(kconsole, (void *) "kconsole", TASK, 0, "kconsole", false); 150 150 if (t) 151 151 thread_ready(t); -
kernel/generic/src/proc/scheduler.c
rb513b3e r4184e76 145 145 spinlock_unlock(&CPU->lock); 146 146 THREAD->saved_fpu_context = 147 147 (fpu_context_t *) slab_alloc(fpu_context_slab, 0); 148 148 /* We may have switched CPUs during slab_alloc */ 149 149 goto restart; … … 538 538 { 539 539 thread_t *t; 540 int count, average, i, j, k = 0; 540 int count, average, j, k = 0; 541 unsigned int i; 541 542 ipl_t ipl; 542 543 … … 690 691 { 691 692 ipl_t ipl; 692 int cpu,i;693 unsigned int cpu, i; 693 694 runq_t *r; 694 695 thread_t *t; … … 698 699 * let's not be interrupted */ 699 700 ipl = interrupts_disable(); 700 for (cpu =0;cpu < config.cpu_count; cpu++) {701 for (cpu = 0; cpu < config.cpu_count; cpu++) { 701 702 702 703 if (!cpus[cpu].active) -
kernel/generic/src/proc/task.c
rb513b3e r4184e76 394 394 cur = cur->next) { 395 395 btree_node_t *node; 396 int i;396 unsigned int i; 397 397 398 398 node = list_get_instance(cur, btree_node_t, leaf_link); -
kernel/generic/src/proc/thread.c
rb513b3e r4184e76 167 167 #endif 168 168 169 t->kstack = frame_alloc(STACK_FRAMES, FRAME_KA | kmflags);169 t->kstack = (uint8_t *) frame_alloc(STACK_FRAMES, FRAME_KA | kmflags); 170 170 if (! t->kstack) { 171 171 #ifdef ARCH_HAS_FPU … … 569 569 cur != &threads_btree.leaf_head; cur = cur->next) { 570 570 btree_node_t *node; 571 int i;571 unsigned int i; 572 572 573 573 node = list_get_instance(cur, btree_node_t, leaf_link);
Note:
See TracChangeset
for help on using the changeset viewer.