Changeset 8ecb3067 in mainline for kernel/generic/src/cpu/cpu.c


Ignore:
Timestamp:
2007-02-05T14:18:26Z (18 years ago)
Author:
Martin Decky <martin@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
42193ad
Parents:
828aa05
Message:

fix signed/unsigned comparison

File:
1 edited

Legend:

Unmodified
Added
Removed
  • kernel/generic/src/cpu/cpu.c

    r828aa05 r8ecb3067  
    5757 */
    5858void cpu_init(void) {
    59         int i, j;
     59        unsigned int i, j;
    6060       
    6161#ifdef CONFIG_SMP
     
    7070                memsetb((uintptr_t) cpus, sizeof(cpu_t) * config.cpu_count, 0);
    7171
    72                 for (i=0; i < config.cpu_count; i++) {
     72                for (i = 0; i < config.cpu_count; i++) {
    7373                        cpus[i].stack = (uint8_t *) frame_alloc(STACK_FRAMES, FRAME_KA | FRAME_ATOMIC);
    7474                       
     
    9999void cpu_list(void)
    100100{
    101         int i;
     101        unsigned int i;
    102102
    103103        for (i = 0; i < config.cpu_count; i++) {
Note: See TracChangeset for help on using the changeset viewer.