Changeset 623b49f1 in mainline for kernel/arch/ia32/src/smp/mps.c


Ignore:
Timestamp:
2007-01-29T19:22:04Z (18 years ago)
Author:
Martin Decky <martin@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
1004b37
Parents:
7d07bf3
Message:

fix signed/unsigned comparison and integer overflow

File:
1 edited

Legend:

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

    r7d07bf3 r623b49f1  
    9191static bool is_bsp(index_t i);
    9292static uint8_t get_cpu_apic_id(index_t i);
    93 static int mps_irq_to_pin(int irq);
     93static int mps_irq_to_pin(unsigned int irq);
    9494
    9595struct smp_config_operations mps_config_operations = {
     
    414414}
    415415
    416 int mps_irq_to_pin(int irq)
     416int mps_irq_to_pin(unsigned int irq)
    417417{
    418418        unsigned int i;
    419419       
    420         for(i = 0; i < io_intr_entry_cnt; i++) {
     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.