- Timestamp:
- 2018-03-11T19:39:11Z (7 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- f3d47c97
- Parents:
- 850fd32
- Location:
- kernel
- Files:
-
- 5 edited
Legend:
- Unmodified
- Added
- Removed
-
kernel/arch/mips32/src/cpu/cpu.c
r850fd32 r84239b1 109 109 if (m->arch.imp_num & 0x80) { 110 110 /* Count records */ 111 for (i = 0; imp_data80[i].vendor; i++); 111 i = 0; 112 while (imp_data80[i].vendor) 113 i++; 112 114 if ((m->arch.imp_num & 0x7f) >= i) { 113 115 printf("imp=%d\n", m->arch.imp_num); … … 116 118 data = &imp_data80[m->arch.imp_num & 0x7f]; 117 119 } else { 118 for (i = 0; imp_data[i].vendor; i++); 120 i = 0; 121 while (imp_data[i].vendor) 122 i++; 119 123 if (m->arch.imp_num >= i) { 120 124 printf("imp=%d\n", m->arch.imp_num); -
kernel/arch/mips32/src/debug/stacktrace.c
r850fd32 r84239b1 159 159 160 160 /* Seek to the end of this function. */ 161 for (cur = inst + 1; !IS_JR_RA(*cur); cur++) 162 ; 161 cur = inst + 1; 162 while (!IS_JR_RA(*cur)) 163 cur++; 164 163 165 /* Scan the last basic block */ 164 166 for (cur--; !is_jump(*(cur - 1)); cur--) { -
kernel/genarch/src/ofw/ofw_tree.c
r850fd32 r84239b1 251 251 252 252 for (size_t i = 1; (i < str_size(path)) && (node); i = j + 1) { 253 for (j = i; (j < str_size(path)) && (path[j] != '/'); j++); 253 j = i; 254 while (j < str_size(path) && path[j] != '/') 255 j++; 254 256 255 257 /* Skip extra slashes */ -
kernel/generic/src/adt/avl.c
r850fd32 r84239b1 412 412 * node. 413 413 */ 414 for (cur = node->lft; cur->rgt != NULL; cur = cur->rgt) 415 ; 414 cur = node->lft; 415 while (cur->rgt != NULL) 416 cur = cur->rgt; 416 417 417 418 if (cur != node->lft) { … … 462 463 * cut-off node up to the root. 463 464 */ 464 for (;;) {465 while (true) { 465 466 if (dir == LEFT) { 466 467 /* -
kernel/generic/src/console/kconsole.c
r850fd32 r84239b1 264 264 } 265 265 266 for (max_match_len_tmp = 0;267 266 max_match_len_tmp = 0; 267 while ((output[max_match_len_tmp] == 268 268 hint[max_match_len_tmp]) && 269 (max_match_len_tmp < max_match_len); ++max_match_len_tmp); 269 (max_match_len_tmp < max_match_len)) 270 ++max_match_len_tmp; 270 271 271 272 max_match_len = max_match_len_tmp; … … 373 374 beg = 0; 374 375 } else { 375 for (beg = position - 1;376 (beg > 0) && (!isspace(current[beg]));377 beg-- );376 beg = position - 1; 377 while ((beg > 0) && (!isspace(current[beg]))) 378 beg--; 378 379 379 380 if (isspace(current[beg]))
Note:
See TracChangeset
for help on using the changeset viewer.