Changeset 3802fcd in mainline for kernel/arch/ia32/src/smp/mps.c


Ignore:
Timestamp:
2007-01-29T17:42:24Z (18 years ago)
Author:
Martin Decky <martin@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
4c60255
Parents:
dad5951
Message:

fix signed/unsigned comparison

File:
1 edited

Legend:

Unmodified
Added
Removed
  • kernel/arch/ia32/src/smp/mps.c

    rdad5951 r3802fcd  
    7878struct __l_intr_entry *l_intr_entries = NULL;
    7979
    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;
     80unsigned int processor_entry_cnt = 0;
     81unsigned int bus_entry_cnt = 0;
     82unsigned int io_apic_entry_cnt = 0;
     83unsigned int io_intr_entry_cnt = 0;
     84unsigned int l_intr_entry_cnt = 0;
    8585
    8686/*
     
    130130int mps_fs_check(uint8_t *base)
    131131{
    132         int i;
     132        unsigned int i;
    133133        uint8_t sum;
    134134       
     
    166166{
    167167        uint8_t *addr[2] = { NULL, (uint8_t *) PA2KA(0xf0000) };
    168         int i, j, length[2] = { 1024, 64*1024 };
     168        unsigned int i, j, length[2] = { 1024, 64 * 1024 };
    169169       
    170170
     
    209209{
    210210        uint8_t *cur;
    211         int i, cnt;
     211        unsigned int i, cnt;
    212212               
    213213        if (ct->signature != CT_SIGNATURE) {
     
    321321void ct_io_apic_entry(struct __io_apic_entry *ioa)
    322322{
    323         static int io_apic_count = 0;
     323        static unsigned int io_apic_count = 0;
    324324
    325325        /* this ioapic is marked unusable */
     
    416416int mps_irq_to_pin(int irq)
    417417{
    418         int i;
    419        
    420         for(i=0;i<io_intr_entry_cnt;i++) {
     418        unsigned int i;
     419       
     420        for(i = 0; i < io_intr_entry_cnt; i++) {
    421421                if (io_intr_entries[i].src_bus_irq == irq && io_intr_entries[i].intr_type == 0)
    422422                        return io_intr_entries[i].dst_io_apic_pin;
Note: See TracChangeset for help on using the changeset viewer.