Changeset 3802fcd in mainline for kernel/arch/ia32/src/smp/mps.c
- Timestamp:
- 2007-01-29T17:42:24Z (18 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- 4c60255
- Parents:
- dad5951
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
kernel/arch/ia32/src/smp/mps.c
rdad5951 r3802fcd 78 78 struct __l_intr_entry *l_intr_entries = NULL; 79 79 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;80 unsigned int processor_entry_cnt = 0; 81 unsigned int bus_entry_cnt = 0; 82 unsigned int io_apic_entry_cnt = 0; 83 unsigned int io_intr_entry_cnt = 0; 84 unsigned int l_intr_entry_cnt = 0; 85 85 86 86 /* … … 130 130 int mps_fs_check(uint8_t *base) 131 131 { 132 int i;132 unsigned int i; 133 133 uint8_t sum; 134 134 … … 166 166 { 167 167 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 }; 169 169 170 170 … … 209 209 { 210 210 uint8_t *cur; 211 int i, cnt;211 unsigned int i, cnt; 212 212 213 213 if (ct->signature != CT_SIGNATURE) { … … 321 321 void ct_io_apic_entry(struct __io_apic_entry *ioa) 322 322 { 323 static int io_apic_count = 0;323 static unsigned int io_apic_count = 0; 324 324 325 325 /* this ioapic is marked unusable */ … … 416 416 int mps_irq_to_pin(int irq) 417 417 { 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++) { 421 421 if (io_intr_entries[i].src_bus_irq == irq && io_intr_entries[i].intr_type == 0) 422 422 return io_intr_entries[i].dst_io_apic_pin;
Note:
See TracChangeset
for help on using the changeset viewer.