124,7 → 124,7 |
void apic_init(void) |
{ |
io_apic_id_t idreg; |
int i; |
unsigned int i; |
|
exc_register(VECTOR_APIC_SPUR, "apic_spurious", (iroutine) apic_spurious); |
|
528,10 → 528,11 |
void io_apic_disable_irqs(uint16_t irqmask) |
{ |
io_redirection_reg_t reg; |
int i, pin; |
unsigned int i; |
int pin; |
|
for (i=0;i<16;i++) { |
if (irqmask & (1<<i)) { |
for (i = 0; i < 16; i++) { |
if (irqmask & (1 << i)) { |
/* |
* Mask the signal input in IO APIC if there is a |
* mapping for the respective IRQ number. |
553,11 → 554,12 |
*/ |
void io_apic_enable_irqs(uint16_t irqmask) |
{ |
int i, pin; |
unsigned int i; |
int pin; |
io_redirection_reg_t reg; |
|
for (i=0;i<16;i++) { |
if (irqmask & (1<<i)) { |
for (i = 0; i < 16; i++) { |
if (irqmask & (1 << i)) { |
/* |
* Unmask the signal input in IO APIC if there is a |
* mapping for the respective IRQ number. |