Changeset 623b49f1 in mainline for kernel/arch/ia32/src/smp/apic.c
- Timestamp:
- 2007-01-29T19:22:04Z (18 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- 1004b37
- Parents:
- 7d07bf3
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
kernel/arch/ia32/src/smp/apic.c
r7d07bf3 r623b49f1 147 147 { 148 148 io_apic_id_t idreg; 149 int i;149 unsigned int i; 150 150 151 151 exc_register(VECTOR_APIC_SPUR, "apic_spurious", (iroutine) apic_spurious); … … 173 173 174 174 if ((pin = smp_irq_to_pin(i)) != -1) 175 io_apic_change_ioredtbl(pin, DEST_ALL, IVT_IRQBASE +i, LOPRI);175 io_apic_change_ioredtbl(pin, DEST_ALL, IVT_IRQBASE + i, LOPRI); 176 176 } 177 177 … … 535 535 { 536 536 io_redirection_reg_t reg; 537 int i, pin; 538 539 for (i=0;i<16;i++) { 540 if (irqmask & (1<<i)) { 537 unsigned int i; 538 int pin; 539 540 for (i = 0; i < 16; i++) { 541 if (irqmask & (1 << i)) { 541 542 /* 542 543 * Mask the signal input in IO APIC if there is a … … 545 546 pin = smp_irq_to_pin(i); 546 547 if (pin != -1) { 547 reg.lo = io_apic_read(IOREDTBL + pin *2);548 reg.lo = io_apic_read(IOREDTBL + pin * 2); 548 549 reg.masked = true; 549 io_apic_write(IOREDTBL + pin *2, reg.lo);550 io_apic_write(IOREDTBL + pin * 2, reg.lo); 550 551 } 551 552 … … 560 561 void io_apic_enable_irqs(uint16_t irqmask) 561 562 { 562 int i, pin; 563 unsigned int i; 564 int pin; 563 565 io_redirection_reg_t reg; 564 566 565 for (i =0;i<16;i++) {566 if (irqmask & (1 <<i)) {567 for (i = 0;i < 16; i++) { 568 if (irqmask & (1 << i)) { 567 569 /* 568 570 * Unmask the signal input in IO APIC if there is a … … 571 573 pin = smp_irq_to_pin(i); 572 574 if (pin != -1) { 573 reg.lo = io_apic_read(IOREDTBL + pin *2);575 reg.lo = io_apic_read(IOREDTBL + pin * 2); 574 576 reg.masked = false; 575 io_apic_write(IOREDTBL + pin *2, reg.lo);577 io_apic_write(IOREDTBL + pin * 2, reg.lo); 576 578 } 577 579
Note:
See TracChangeset
for help on using the changeset viewer.