Changeset 4184e76 in mainline for kernel/generic/src/proc
- 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/proc
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
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.