Changeset 7f043c0 in mainline for kernel/arch/ia32/src/smp/mps.c


Ignore:
Timestamp:
2007-05-31T21:39:13Z (18 years ago)
Author:
Martin Decky <martin@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
7bb0c32
Parents:
d8431986
Message:

fix ICC compilation

File:
1 edited

Legend:

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

    rd8431986 r7f043c0  
    5555#define CT_SIGNATURE    0x504d4350
    5656
    57 int mps_fs_check(uint8_t *base);
    58 int mps_ct_check(void);
    59 
    60 int configure_via_ct(void);
    61 int configure_via_default(uint8_t n);
    62 
    63 int ct_processor_entry(struct __processor_entry *pr);
    64 void ct_bus_entry(struct __bus_entry *bus);
    65 void ct_io_apic_entry(struct __io_apic_entry *ioa);
    66 void ct_io_intr_entry(struct __io_intr_entry *iointr);
    67 void ct_l_intr_entry(struct __l_intr_entry *lintr);
    68 
    69 void ct_extended_entries(void);
     57static int mps_fs_check(uint8_t *base);
     58static int mps_ct_check(void);
     59
     60static int configure_via_ct(void);
     61static int configure_via_default(uint8_t n);
     62
     63static int ct_processor_entry(struct __processor_entry *pr);
     64static void ct_bus_entry(struct __bus_entry *bus);
     65static void ct_io_apic_entry(struct __io_apic_entry *ioa);
     66static void ct_io_intr_entry(struct __io_intr_entry *iointr);
     67static void ct_l_intr_entry(struct __l_intr_entry *lintr);
     68
     69static void ct_extended_entries(void);
    7070
    7171static struct mps_fs *fs;
     
    109109{
    110110        ASSERT(i < processor_entry_cnt);
    111         return processor_entries[i].cpu_flags & 0x1;
     111        return (bool) ((processor_entries[i].cpu_flags & 0x01) == 0x01);
    112112}
    113113
     
    115115{
    116116        ASSERT(i < processor_entry_cnt);
    117         return processor_entries[i].cpu_flags & 0x2;
     117        return (bool) ((processor_entries[i].cpu_flags & 0x02) == 0x02);
    118118}
    119119
     
    134134       
    135135        for (i = 0, sum = 0; i < 16; i++)
    136                 sum += base[i];
     136                sum = (uint8_t) (sum + base[i]);
    137137       
    138138        return !sum;
     
    151151        /* count the checksum for the base table */
    152152        for (i=0,sum=0; i < ct->base_table_length; i++)
    153                 sum += base[i];
     153                sum = (uint8_t) (sum + base[i]);
    154154               
    155155        if (sum)
     
    158158        /* count the checksum for the extended table */
    159159        for (i=0,sum=0; i < ct->ext_table_length; i++)
    160                 sum += ext[i];
     160                sum = (uint8_t) (sum + ext[i]);
    161161               
    162162        return sum == ct->ext_table_checksum;
     
    287287}
    288288
    289 int configure_via_default(uint8_t n)
     289int configure_via_default(uint8_t n __attribute__((unused)))
    290290{
    291291        /*
     
    297297
    298298
    299 int ct_processor_entry(struct __processor_entry *pr)
     299int ct_processor_entry(struct __processor_entry *pr __attribute__((unused)))
    300300{
    301301        /*
     
    309309}
    310310
    311 void ct_bus_entry(struct __bus_entry *bus)
     311void ct_bus_entry(struct __bus_entry *bus __attribute__((unused)))
    312312{
    313313#ifdef MPSCT_VERBOSE
     
    338338
    339339//#define MPSCT_VERBOSE
    340 void ct_io_intr_entry(struct __io_intr_entry *iointr)
     340void ct_io_intr_entry(struct __io_intr_entry *iointr __attribute__((unused)))
    341341{
    342342#ifdef MPSCT_VERBOSE
     
    369369}
    370370
    371 void ct_l_intr_entry(struct __l_intr_entry *lintr)
     371void ct_l_intr_entry(struct __l_intr_entry *lintr __attribute__((unused)))
    372372{
    373373#ifdef MPSCT_VERBOSE
Note: See TracChangeset for help on using the changeset viewer.