Subversion Repositories HelenOS

Compare Revisions

Ignore whitespace Rev 3905 → Rev 3906

/trunk/kernel/arch/mips32/src/exception.c
144,7 → 144,7
int i;
/* decode interrupt number and process the interrupt */
cause = (cp0_cause_read() >> 8) &0xff;
cause = (cp0_cause_read() >> 8) & 0xff;
for (i = 0; i < 8; i++) {
if (cause & (1 << i)) {
153,7 → 153,7
/*
* The IRQ handler was found.
*/
irq->handler(irq, irq->arg);
irq->handler(irq);
spinlock_unlock(&irq->lock);
} else {
/*
160,7 → 160,8
* Spurious interrupt.
*/
#ifdef CONFIG_DEBUG
printf("cpu%u: spurious interrupt (inum=%d)\n", CPU->id, i);
printf("cpu%u: spurious interrupt (inum=%d)\n",
CPU->id, i);
#endif
}
}
/trunk/kernel/arch/mips32/src/interrupt.c
100,12 → 100,12
cp0_compare_write(nextcount);
}
 
static irq_ownership_t timer_claim(void)
static irq_ownership_t timer_claim(void *instance)
{
return IRQ_ACCEPT;
}
 
static void timer_irq_handler(irq_t *irq, void *arg, ...)
static void timer_irq_handler(irq_t *irq)
{
unsigned long drift;
/trunk/kernel/arch/mips32/src/drivers/serial.c
112,7 → 112,7
}
 
/** Process keyboard interrupt. Does not work in simics? */
static void serial_irq_handler(irq_t *irq, void *arg, ...)
static void serial_irq_handler(irq_t *irq)
{
if ((irq->notif_cfg.notify) && (irq->notif_cfg.answerbox))
ipc_irq_send_notif(irq);
120,7 → 120,7
serial_handler();
}
 
static irq_ownership_t serial_claim(void)
static irq_ownership_t serial_claim(void *instance)
{
return IRQ_ACCEPT;
}
/trunk/kernel/arch/mips32/src/drivers/msim.c
94,7 → 94,7
}
 
/** Process keyboard interrupt. */
static void msim_irq_handler(irq_t *irq, void *arg, ...)
static void msim_irq_handler(irq_t *irq)
{
if ((irq->notif_cfg.notify) && (irq->notif_cfg.answerbox))
ipc_irq_send_notif(irq);
110,7 → 110,7
}
}
 
static irq_ownership_t msim_claim(void)
static irq_ownership_t msim_claim(void *instance)
{
return IRQ_ACCEPT;
}