Changeset 6c441cf8 in mainline
- Timestamp:
- 2008-02-27T11:49:17Z (17 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- 56976a17
- Parents:
- fdb7795
- Files:
-
- 54 edited
Legend:
- Unmodified
- Added
- Removed
-
kernel/Makefile
rfdb7795 r6c441cf8 44 44 45 45 GCC_CFLAGS = -I$(INCLUDES) -O$(OPTIMIZATION) \ 46 -fno-builtin -fomit-frame-pointer -Wall -W missing-prototypes -Werror \46 -fno-builtin -fomit-frame-pointer -Wall -Wextra -Wno-unused-parameter -Wmissing-prototypes -Werror \ 47 47 -nostdlib -nostdinc 48 48 -
kernel/arch/amd64/src/mm/page.c
rfdb7795 r6c441cf8 83 83 { 84 84 uintptr_t cur; 85 int i;85 unsigned int i; 86 86 int identity_flags = PAGE_CACHEABLE | PAGE_EXEC | PAGE_GLOBAL | PAGE_WRITE; 87 87 -
kernel/arch/arm32/src/arm32.c
rfdb7795 r6c441cf8 56 56 void arch_pre_main(void) 57 57 { 58 int i;58 unsigned int i; 59 59 60 60 init.cnt = bootinfo.cnt; -
kernel/arch/arm32/src/cpu/cpu.c
rfdb7795 r6c441cf8 57 57 58 58 /** Length of the #imp_data array */ 59 static int imp_data_length = sizeof(imp_data) / sizeof(char *);59 static unsigned int imp_data_length = sizeof(imp_data) / sizeof(char *); 60 60 61 61 /** Architecture names */ … … 72 72 73 73 /** Length of the #arch_data array */ 74 static int arch_data_length = sizeof(arch_data) / sizeof(char *);74 static unsigned int arch_data_length = sizeof(arch_data) / sizeof(char *); 75 75 76 76 -
kernel/arch/arm32/src/debug/print.c
rfdb7795 r6c441cf8 57 57 static int debug_write(const char *str, size_t count, void *unused) 58 58 { 59 int i;60 for (i = 0; i < count; ++i) {59 unsigned int i; 60 for (i = 0; i < count; ++i) 61 61 putc(str[i]); 62 }62 63 63 return i; 64 64 } -
kernel/arch/ia32xen/src/mm/tlb.c
rfdb7795 r6c441cf8 66 66 void tlb_invalidate_pages(asid_t asid, uintptr_t page, count_t cnt) 67 67 { 68 int i;68 unsigned int i; 69 69 70 70 for (i = 0; i < cnt; i++) -
kernel/arch/ia32xen/src/smp/mps.c
rfdb7795 r6c441cf8 78 78 struct __l_intr_entry *l_intr_entries = NULL; 79 79 80 int processor_entry_cnt = 0;81 int bus_entry_cnt = 0;82 int io_apic_entry_cnt = 0;83 int io_intr_entry_cnt = 0;84 int l_intr_entry_cnt = 0;80 unsigned int processor_entry_cnt = 0; 81 unsigned int bus_entry_cnt = 0; 82 unsigned int io_apic_entry_cnt = 0; 83 unsigned int io_intr_entry_cnt = 0; 84 unsigned int l_intr_entry_cnt = 0; 85 85 86 86 waitq_t ap_completion_wq; … … 418 418 int mps_irq_to_pin(unsigned int irq) 419 419 { 420 int i;420 unsigned int i; 421 421 422 422 for (i = 0; i < io_intr_entry_cnt; i++) { -
kernel/arch/ia32xen/src/smp/smp.c
rfdb7795 r6c441cf8 99 99 void kmp(void *arg) 100 100 { 101 int i;101 unsigned int i; 102 102 103 103 ASSERT(ops != NULL); -
kernel/arch/ia64/src/ia64.c
rfdb7795 r6c441cf8 63 63 64 64 //#ifdef I460GX 65 int i; 65 unsigned int i; 66 66 67 init.cnt = bootinfo->taskmap.count; 67 for(i=0;i<init.cnt;i++)68 {69 init.tasks[i].addr = ((unsigned long)bootinfo->taskmap.tasks[i].addr)|VRN_MASK;70 68 69 for (i = 0; i < init.cnt; i++) { 70 init.tasks[i].addr = ((unsigned long) bootinfo->taskmap.tasks[i].addr) | VRN_MASK; 71 init.tasks[i].size = bootinfo->taskmap.tasks[i].size; 71 72 } 72 73 /* -
kernel/arch/ia64/src/mm/tlb.c
rfdb7795 r6c441cf8 60 60 uint32_t count1, count2, stride1, stride2; 61 61 62 int i, j;62 unsigned int i, j; 63 63 64 64 adr = PAL_PTCE_INFO_BASE(); … … 70 70 ipl = interrupts_disable(); 71 71 72 for (i = 0; i < count1; i++) {73 for (j = 0; j < count2; j++) {72 for (i = 0; i < count1; i++) { 73 for (j = 0; j < count2; j++) { 74 74 asm volatile ( 75 75 "ptc.e %0 ;;" -
kernel/arch/mips32/src/cpu/cpu.c
rfdb7795 r6c441cf8 105 105 { 106 106 struct data_t *data; 107 int i;107 unsigned int i; 108 108 109 109 if (m->arch.imp_num & 0x80) { 110 110 /* Count records */ 111 for (i=0;imp_data80[i].vendor;i++) 112 ; 111 for (i = 0; imp_data80[i].vendor; i++); 113 112 if ((m->arch.imp_num & 0x7f) >= i) { 114 printf("imp=%d\n", m->arch.imp_num);113 printf("imp=%d\n", m->arch.imp_num); 115 114 return; 116 115 } 117 116 data = &imp_data80[m->arch.imp_num & 0x7f]; 118 117 } else { 119 for (i=0;imp_data[i].vendor;i++) 120 ; 118 for (i = 0; imp_data[i].vendor; i++); 121 119 if (m->arch.imp_num >= i) { 122 printf("imp=%d\n", m->arch.imp_num);120 printf("imp=%d\n", m->arch.imp_num); 123 121 return; 124 122 } … … 128 126 printf("cpu%d: %s %s (rev=%d.%d, imp=%d)\n", 129 127 m->id, data->vendor, data->model, m->arch.rev_num >> 4, 130 128 m->arch.rev_num & 0xf, m->arch.imp_num); 131 129 } 132 130 -
kernel/arch/mips32/src/debugger.c
rfdb7795 r6c441cf8 209 209 ipl_t ipl; 210 210 211 if (argv->intval < 0 || argv->intval> BKPOINTS_MAX) {211 if (argv->intval > BKPOINTS_MAX) { 212 212 printf("Invalid breakpoint number.\n"); 213 213 return 0; -
kernel/arch/mips32/src/drivers/arc.c
rfdb7795 r6c441cf8 119 119 { 120 120 cm_resource_list *configdata; 121 int i;121 unsigned int i; 122 122 123 123 if (!c->configdatasize) … … 162 162 static void arc_print_component(arc_component *c) 163 163 { 164 int i;164 unsigned int i; 165 165 166 166 printf("%s: ",ctypes[c->type]); -
kernel/arch/mips32/src/mm/tlb.c
rfdb7795 r6c441cf8 573 573 void tlb_invalidate_pages(asid_t asid, uintptr_t page, count_t cnt) 574 574 { 575 int i;575 unsigned int i; 576 576 ipl_t ipl; 577 577 entry_lo_t lo0, lo1; … … 584 584 ipl = interrupts_disable(); 585 585 586 for (i = 0; i < cnt +1; i+=2) {586 for (i = 0; i < cnt + 1; i += 2) { 587 587 hi.value = 0; 588 588 prepare_entry_hi(&hi, asid, page + i * PAGE_SIZE); -
kernel/arch/sparc64/src/mm/frame.c
rfdb7795 r6c441cf8 49 49 void frame_arch_init(void) 50 50 { 51 int i;51 unsigned int i; 52 52 pfn_t confdata; 53 53 -
kernel/arch/sparc64/src/mm/page.c
rfdb7795 r6c441cf8 67 67 68 68 #ifdef CONFIG_SMP 69 int i;69 unsigned int i; 70 70 71 71 /* … … 99 99 { 100 100 unsigned int order; 101 int i;101 unsigned int i; 102 102 103 103 ASSERT(config.cpu_active == 1); -
kernel/arch/sparc64/src/mm/tlb.c
rfdb7795 r6c441cf8 491 491 void tlb_invalidate_pages(asid_t asid, uintptr_t page, count_t cnt) 492 492 { 493 int i;493 unsigned int i; 494 494 tlb_context_reg_t pc_save, ctx; 495 495 -
kernel/arch/sparc64/src/smp/ipi.c
rfdb7795 r6c441cf8 117 117 void ipi_broadcast_arch(int ipi) 118 118 { 119 int i;119 unsigned int i; 120 120 121 121 void (* func)(void); -
kernel/genarch/src/ofw/ebus.c
rfdb7795 r6c441cf8 58 58 range = prop->value; 59 59 60 int i;60 unsigned int i; 61 61 62 62 for (i = 0; i < ranges; i++) { … … 103 103 uint32_t intr = interrupt & intr_mask->intr_mask; 104 104 105 int i;105 unsigned int i; 106 106 for (i = 0; i < count; i++) { 107 107 if ((intr_map[i].space == space) && (intr_map[i].addr == addr) -
kernel/genarch/src/ofw/fhc.c
rfdb7795 r6c441cf8 56 56 range = prop->value; 57 57 58 int i;58 unsigned int i; 59 59 60 60 for (i = 0; i < ranges; i++) { … … 98 98 range = prop->value; 99 99 100 int i;100 unsigned int i; 101 101 102 102 for (i = 0; i < ranges; i++) { -
kernel/genarch/src/ofw/ofw_tree.c
rfdb7795 r6c441cf8 62 62 ofw_tree_property_t *ofw_tree_getprop(const ofw_tree_node_t *node, const char *name) 63 63 { 64 int i;64 unsigned int i; 65 65 66 66 for (i = 0; i < node->properties; i++) { -
kernel/genarch/src/ofw/pci.c
rfdb7795 r6c441cf8 66 66 range = prop->value; 67 67 68 int i;68 unsigned int i; 69 69 70 70 for (i = 0; i < ranges; i++) { … … 101 101 assigned_address = prop->value; 102 102 103 int i;103 unsigned int i; 104 104 105 105 for (i = 0; i < assigned_addresses; i++) { -
kernel/genarch/src/ofw/sbus.c
rfdb7795 r6c441cf8 62 62 range = prop->value; 63 63 64 int i;64 unsigned int i; 65 65 66 66 for (i = 0; i < ranges; i++) { -
kernel/generic/include/lib/elf.h
rfdb7795 r6c441cf8 337 337 #endif 338 338 339 extern char *elf_error( int rc);339 extern char *elf_error(unsigned int rc); 340 340 341 341 #endif -
kernel/generic/include/mm/as.h
rfdb7795 r6c441cf8 300 300 extern mem_backend_t phys_backend; 301 301 302 extern int elf_load(elf_header_t *header, as_t *as);302 extern unsigned int elf_load(elf_header_t *header, as_t *as); 303 303 304 304 /* Address space area related syscalls. */ -
kernel/generic/include/mm/slab.h
rfdb7795 r6c441cf8 54 54 55 55 /** Maximum wasted space we allow for cache */ 56 #define SLAB_MAX_BADNESS(cache) (( PAGE_SIZE << (cache)->order) >> 2)56 #define SLAB_MAX_BADNESS(cache) (((unsigned int) PAGE_SIZE << (cache)->order) >> 2) 57 57 58 58 /* slab_reclaim constants */ … … 100 100 101 101 /* Computed values */ 102 uint8_t order; /**< Order of frames to be allocated */103 int objects; /**< Number of objects that fit in */102 uint8_t order; /**< Order of frames to be allocated */ 103 unsigned int objects; /**< Number of objects that fit in */ 104 104 105 105 /* Statistics */ -
kernel/generic/src/debug/symtab.c
rfdb7795 r6c441cf8 71 71 static char * symtab_search_one(const char *name, int *startpos) 72 72 { 73 int namelen = strlen(name);73 unsigned int namelen = strlen(name); 74 74 char *curname; 75 75 int i,j; -
kernel/generic/src/interrupt/interrupt.c
rfdb7795 r6c441cf8 104 104 static int exc_print_cmd(cmd_arg_t *argv) 105 105 { 106 #if (IVT_ITEMS > 0) 106 107 unsigned int i; 107 108 char *symbol; … … 139 140 140 141 spinlock_unlock(&exctbl_lock); 142 #endif 141 143 142 144 return 1; -
kernel/generic/src/ipc/irq.c
rfdb7795 r6c441cf8 66 66 static void code_execute(call_t *call, irq_code_t *code) 67 67 { 68 int i;68 unsigned int i; 69 69 unative_t dstval = 0; 70 70 -
kernel/generic/src/ipc/sysipc.c
rfdb7795 r6c441cf8 165 165 int phoneid; 166 166 167 if ( IPC_GET_RETVAL(answer->data) == EHANGUP) {167 if ((native_t) IPC_GET_RETVAL(answer->data) == EHANGUP) { 168 168 /* In case of forward, hangup the forwared phone, 169 169 * not the originator … … 355 355 static void process_answer(call_t *call) 356 356 { 357 if ( IPC_GET_RETVAL(call->data) == EHANGUP&&357 if (((native_t) IPC_GET_RETVAL(call->data) == EHANGUP) && 358 358 (call->flags & IPC_CALL_FORWARDED)) 359 359 IPC_SET_RETVAL(call->data, EFORWARD); -
kernel/generic/src/lib/elf.c
rfdb7795 r6c441cf8 70 70 * @return EE_OK on success 71 71 */ 72 int elf_load(elf_header_t *header, as_t * as)72 unsigned int elf_load(elf_header_t *header, as_t * as) 73 73 { 74 74 int i, rc; … … 132 132 * @return NULL terminated description of error. 133 133 */ 134 char *elf_error( int rc)134 char *elf_error(unsigned int rc) 135 135 { 136 136 ASSERT(rc < sizeof(error_codes) / sizeof(char *)); -
kernel/generic/src/lib/func.c
rfdb7795 r6c441cf8 140 140 int strncmp(const char *src, const char *dst, size_t len) 141 141 { 142 int i;142 unsigned int i; 143 143 144 for (i = 0; *src && *dst && i < len; src++, dst++, i++) {144 for (i = 0; (*src) && (*dst) && (i < len); src++, dst++, i++) { 145 145 if (*src < *dst) 146 146 return -1; … … 169 169 void strncpy(char *dest, const char *src, size_t len) 170 170 { 171 int i;171 unsigned int i; 172 172 for (i = 0; i < len; i++) { 173 173 if (!(dest[i] = src[i])) -
kernel/generic/src/lib/memstr.c
rfdb7795 r6c441cf8 60 60 void *_memcpy(void * dst, const void *src, size_t cnt) 61 61 { 62 int i, j;62 unsigned int i, j; 63 63 64 64 if (ALIGN_UP((uintptr_t) src, sizeof(unative_t)) != (uintptr_t) src || … … 90 90 void _memsetb(uintptr_t dst, size_t cnt, uint8_t x) 91 91 { 92 int i;92 unsigned int i; 93 93 uint8_t *p = (uint8_t *) dst; 94 94 … … 109 109 void _memsetw(uintptr_t dst, size_t cnt, uint16_t x) 110 110 { 111 int i;111 unsigned int i; 112 112 uint16_t *p = (uint16_t *) dst; 113 113 -
kernel/generic/src/lib/sort.c
rfdb7795 r6c441cf8 97 97 { 98 98 if (n > 4) { 99 int i = 0, j = n - 1;99 unsigned int i = 0, j = n - 1; 100 100 101 101 memcpy(pivot, data, e_size); 102 102 103 103 while (1) { 104 while ((cmp(data + i * e_size, pivot) < 0) && i < n) i++; 105 while ((cmp(data + j * e_size, pivot) >=0) && j > 0) j--; 106 if (i<j) { 104 while ((cmp(data + i * e_size, pivot) < 0) && (i < n)) 105 i++; 106 while ((cmp(data + j * e_size, pivot) >= 0) && (j > 0)) 107 j--; 108 109 if (i < j) { 107 110 memcpy(tmp, data + i * e_size, e_size); 108 111 memcpy(data + i * e_size, data + j * e_size, e_size); -
kernel/generic/src/main/main.c
rfdb7795 r6c441cf8 87 87 /** Initial user-space tasks */ 88 88 init_t init = { 89 089 .cnt = 0 90 90 }; 91 91 -
kernel/generic/src/mm/as.c
rfdb7795 r6c441cf8 432 432 count_t c = 433 433 (count_t) node->value[node->keys - 1]; 434 int i = 0;434 unsigned int i = 0; 435 435 436 436 if (overlaps(b, c * PAGE_SIZE, area->base, … … 562 562 cur != &area->used_space.leaf_head; cur = cur->next) { 563 563 btree_node_t *node; 564 int i;564 unsigned int i; 565 565 566 566 node = list_get_instance(cur, btree_node_t, leaf_link); … … 1098 1098 as_area_t *a; 1099 1099 btree_node_t *leaf, *lnode; 1100 int i;1100 unsigned int i; 1101 1101 1102 1102 a = (as_area_t *) btree_search(&as->as_area_btree, va, &leaf); … … 1156 1156 as_area_t *a; 1157 1157 btree_node_t *leaf, *node; 1158 int i;1158 unsigned int i; 1159 1159 1160 1160 /* … … 1265 1265 btree_node_t *leaf, *node; 1266 1266 count_t pages; 1267 int i;1267 unsigned int i; 1268 1268 1269 1269 ASSERT(page == ALIGN_DOWN(page, PAGE_SIZE)); … … 1547 1547 btree_node_t *leaf, *node; 1548 1548 count_t pages; 1549 int i;1549 unsigned int i; 1550 1550 1551 1551 ASSERT(page == ALIGN_DOWN(page, PAGE_SIZE)); … … 1735 1735 cur != &sh_info->pagemap.leaf_head; cur = cur->next) { 1736 1736 btree_node_t *node; 1737 int i;1737 unsigned int i; 1738 1738 1739 1739 node = list_get_instance(cur, btree_node_t, leaf_link); … … 1796 1796 node = list_get_instance(cur, btree_node_t, leaf_link); 1797 1797 1798 int i;1798 unsigned int i; 1799 1799 for (i = 0; i < node->keys; i++) { 1800 1800 as_area_t *area = node->value[i]; -
kernel/generic/src/mm/backend_anon.c
rfdb7795 r6c441cf8 99 99 if (!frame) { 100 100 bool allocate = true; 101 int i;101 unsigned int i; 102 102 103 103 /* … … 194 194 cur != &area->used_space.leaf_head; cur = cur->next) { 195 195 btree_node_t *node; 196 int i;196 unsigned int i; 197 197 198 198 node = list_get_instance(cur, btree_node_t, leaf_link); … … 200 200 uintptr_t base = node->key[i]; 201 201 count_t count = (count_t) node->value[i]; 202 int j;202 unsigned int j; 203 203 204 204 for (j = 0; j < count; j++) { -
kernel/generic/src/mm/backend_elf.c
rfdb7795 r6c441cf8 104 104 ALIGN_DOWN(addr, PAGE_SIZE) - area->base, &leaf); 105 105 if (!frame) { 106 int i;106 unsigned int i; 107 107 108 108 /* … … 291 291 for (cur = &node->leaf_link; cur != &area->used_space.leaf_head; 292 292 cur = cur->next) { 293 int i;293 unsigned int i; 294 294 295 295 node = list_get_instance(cur, btree_node_t, leaf_link); … … 298 298 uintptr_t base = node->key[i]; 299 299 count_t count = (count_t) node->value[i]; 300 int j;300 unsigned int j; 301 301 302 302 /* -
kernel/generic/src/mm/frame.c
rfdb7795 r6c441cf8 121 121 static inline int frame_index_valid(zone_t *zone, index_t index) 122 122 { 123 return (index >= 0) && (index< zone->count);123 return (index < zone->count); 124 124 } 125 125 … … 211 211 spinlock_lock(&zones.lock); 212 212 213 if (hint >= zones.count || hint < 0)213 if (hint >= zones.count) 214 214 hint = 0; 215 215 … … 720 720 spinlock_lock(&zones.lock); 721 721 722 if ( z1 < 0 || z1 >= zones.count || z2 < 0 || z2 >= zones.count)722 if ((z1 >= zones.count) || (z2 >= zones.count)) 723 723 goto errout; 724 724 /* We can join only 2 zones with none existing inbetween */ -
kernel/generic/src/mm/slab.c
rfdb7795 r6c441cf8 173 173 slab_t *slab; 174 174 size_t fsize; 175 int i;175 unsigned int i; 176 176 unsigned int zone = 0; 177 177 … … 192 192 193 193 /* Fill in slab structures */ 194 for (i =0; i < (1 << cache->order); i++)195 frame_set_parent(ADDR2PFN(KA2PA(data)) +i, slab, zone);194 for (i = 0; i < ((unsigned int) 1 << cache->order); i++) 195 frame_set_parent(ADDR2PFN(KA2PA(data)) + i, slab, zone); 196 196 197 197 slab->start = data; … … 200 200 slab->cache = cache; 201 201 202 for (i =0; i<cache->objects;i++)202 for (i = 0; i < cache->objects; i++) 203 203 *((int *) (slab->start + i*cache->size)) = i+1; 204 204 … … 372 372 slab_magazine_t *mag) 373 373 { 374 int i;374 unsigned int i; 375 375 count_t frames = 0; 376 376 377 for (i =0;i < mag->busy; i++) {377 for (i = 0; i < mag->busy; i++) { 378 378 frames += slab_obj_destroy(cache, mag->objs[i], NULL); 379 379 atomic_dec(&cache->cached_objs); … … 528 528 529 529 /** Return number of objects that fit in certain cache size */ 530 static int comp_objects(slab_cache_t *cache)530 static unsigned int comp_objects(slab_cache_t *cache) 531 531 { 532 532 if (cache->flags & SLAB_CACHE_SLINSIDE) … … 537 537 538 538 /** Return wasted space in slab */ 539 static int badness(slab_cache_t *cache)540 { 541 int objects;542 int ssize;539 static unsigned int badness(slab_cache_t *cache) 540 { 541 unsigned int objects; 542 unsigned int ssize; 543 543 544 544 objects = comp_objects(cache); … … 546 546 if (cache->flags & SLAB_CACHE_SLINSIDE) 547 547 ssize -= sizeof(slab_t); 548 return ssize - objects *cache->size;548 return ssize - objects * cache->size; 549 549 } 550 550 … … 554 554 static void make_magcache(slab_cache_t *cache) 555 555 { 556 int i;556 unsigned int i; 557 557 558 558 ASSERT(_slab_initialized >= 2); 559 559 560 560 cache->mag_cache = malloc(sizeof(slab_mag_cache_t)*config.cpu_count,0); 561 for (i =0; i < config.cpu_count; i++) {561 for (i = 0; i < config.cpu_count; i++) { 562 562 memsetb((uintptr_t)&cache->mag_cache[i], 563 563 sizeof(cache->mag_cache[i]), 0); 564 spinlock_initialize(&cache->mag_cache[i].lock, 565 "slab_maglock_cpu"); 564 spinlock_initialize(&cache->mag_cache[i].lock, "slab_maglock_cpu"); 566 565 } 567 566 } … … 655 654 static count_t _slab_reclaim(slab_cache_t *cache, int flags) 656 655 { 657 int i;656 unsigned int i; 658 657 slab_magazine_t *mag; 659 658 count_t frames = 0; … … 676 675 /* Free cpu-bound magazines */ 677 676 /* Destroy CPU magazines */ 678 for (i =0; i<config.cpu_count; i++) {677 for (i = 0; i < config.cpu_count; i++) { 679 678 spinlock_lock(&cache->mag_cache[i].lock); 680 679 -
kernel/generic/src/mm/tlb.c
rfdb7795 r6c441cf8 82 82 uintptr_t page, count_t count) 83 83 { 84 int i;84 unsigned int i; 85 85 86 86 CPU->tlb_active = 0; … … 145 145 uintptr_t page; 146 146 count_t count; 147 int i;147 unsigned int i; 148 148 149 149 ASSERT(CPU); -
kernel/generic/src/printf/printf_core.c
rfdb7795 r6c441cf8 94 94 struct printf_spec *ps) 95 95 { 96 return ps->write((void *) buf, count, ps->data);96 return ps->write((void *) buf, count, ps->data); 97 97 } 98 98 … … 178 178 * @return Number of characters printed, negative value on failure. 179 179 */ 180 static int print_string(char *s, int width, int precision, uint64_t flags,181 180 static int print_string(char *s, int width, unsigned int precision, 181 uint64_t flags, struct printf_spec *ps) 182 182 { 183 183 int counter = 0; -
kernel/generic/src/proc/task.c
rfdb7795 r6c441cf8 245 245 as_t *as; 246 246 as_area_t *a; 247 int rc;247 unsigned int rc; 248 248 thread_t *t; 249 249 task_t *task; -
kernel/generic/src/synch/futex.c
rfdb7795 r6c441cf8 325 325 cur != &TASK->futexes.leaf_head; cur = cur->next) { 326 326 btree_node_t *node; 327 int i;327 unsigned int i; 328 328 329 329 node = list_get_instance(cur, btree_node_t, leaf_link); -
kernel/generic/src/time/clock.c
rfdb7795 r6c441cf8 138 138 void *arg; 139 139 count_t missed_clock_ticks = CPU->missed_clock_ticks; 140 int i;140 unsigned int i; 141 141 142 142 /* -
kernel/test/avltree/avltree1.c
rfdb7795 r6c441cf8 247 247 static void test_tree_delmin(avltree_t *tree, count_t node_count, bool quiet) 248 248 { 249 int i = 0;249 unsigned int i = 0; 250 250 251 251 if (!quiet) -
kernel/test/fpu/fpu1.c
rfdb7795 r6c441cf8 216 216 waitq_wakeup(&can_start, WAKEUP_ALL); 217 217 218 while (atomic_get(&threads_ok) != total) {218 while (atomic_get(&threads_ok) != (long) total) { 219 219 if (!quiet) 220 220 printf("Threads left: %d\n", total - atomic_get(&threads_ok)); -
kernel/test/fpu/mips2.c
rfdb7795 r6c441cf8 152 152 waitq_wakeup(&can_start, WAKEUP_ALL); 153 153 154 while (atomic_get(&threads_ok) != total) {154 while (atomic_get(&threads_ok) != (long) total) { 155 155 if (!quiet) 156 156 printf("Threads left: %d\n", total - atomic_get(&threads_ok)); -
kernel/test/fpu/sse1.c
rfdb7795 r6c441cf8 152 152 waitq_wakeup(&can_start, WAKEUP_ALL); 153 153 154 while (atomic_get(&threads_ok) != total) {154 while (atomic_get(&threads_ok) != (long) total) { 155 155 if (!quiet) 156 156 printf("Threads left: %d\n", total - atomic_get(&threads_ok)); -
kernel/test/mm/falloc2.c
rfdb7795 r6c441cf8 89 89 90 90 for (i = 0; i < allocated; i++) { 91 for (k = 0; k <= (( FRAME_SIZE << order) - 1); k++) {91 for (k = 0; k <= (((index_t) FRAME_SIZE << order) - 1); k++) { 92 92 if (((uint8_t *) frames[i])[k] != val) { 93 93 if (!sh_quiet) -
kernel/test/synch/rwlock5.c
rfdb7795 r6c441cf8 70 70 { 71 71 int i, j, k; 72 count_treaders, writers;72 long readers, writers; 73 73 74 74 waitq_initialize(&can_start); -
kernel/test/test.c
rfdb7795 r6c441cf8 59 59 #include <thread/thread1.def> 60 60 #include <sysinfo/sysinfo1.def> 61 {NULL, NULL, NULL} 61 { 62 .name = NULL, 63 .desc = NULL, 64 .entry = NULL 65 } 62 66 }; 63 67 -
kernel/test/thread/thread1.c
rfdb7795 r6c441cf8 79 79 80 80 atomic_set(&finish, 0); 81 while (atomic_get(&threads_finished) < total) {81 while (atomic_get(&threads_finished) < ((long) total)) { 82 82 if (!quiet) 83 83 printf("Threads left: %d\n", total - atomic_get(&threads_finished)); -
uspace/lib/libc/arch/ppc64/src/syscall.c
rfdb7795 r6c441cf8 37 37 #include <libc.h> 38 38 39 sysarg_t __syscall(const sysarg_t p1, const sysarg_t p2, const sysarg_t p3, const sysarg_t p4, const syscall_t id) 39 sysarg_t __syscall(const sysarg_t p1, const sysarg_t p2, const sysarg_t p3, 40 const sysarg_t p4, const sysarg_t p5, const sysarg_t p6, const syscall_t id) 40 41 { 41 42 register sysarg_t __ppc32_reg_r3 asm("3") = p1; … … 43 44 register sysarg_t __ppc32_reg_r5 asm("5") = p3; 44 45 register sysarg_t __ppc32_reg_r6 asm("6") = p4; 45 register sysarg_t __ppc32_reg_r7 asm("7") = id; 46 register sysarg_t __ppc32_reg_r7 asm("7") = p5; 47 register sysarg_t __ppc32_reg_r8 asm("8") = p6; 48 register sysarg_t __ppc32_reg_r9 asm("9") = id; 46 49 47 50 asm volatile ( … … 52 55 "r" (__ppc32_reg_r5), 53 56 "r" (__ppc32_reg_r6), 54 "r" (__ppc32_reg_r7) 57 "r" (__ppc32_reg_r7), 58 "r" (__ppc32_reg_r8), 59 "r" (__ppc32_reg_r9) 55 60 ); 56 61
Note:
See TracChangeset
for help on using the changeset viewer.