Changeset 6cd9aa6 in mainline for kernel/arch/mips32/src


Ignore:
Timestamp:
2009-02-15T23:13:55Z (16 years ago)
Author:
Jakub Jermar <jakub@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
17f168e
Parents:
fa09449
Message:

IRQ handlers are using one superfluous argument and an unused elipsis.
On the other hand, IRQ claim functions would need to be passed the instance
argument.

Location:
kernel/arch/mips32/src
Files:
4 edited

Legend:

Unmodified
Added
Removed
  • kernel/arch/mips32/src/drivers/msim.c

    rfa09449 r6cd9aa6  
    9595
    9696/** Process keyboard interrupt. */
    97 static void msim_irq_handler(irq_t *irq, void *arg, ...)
     97static void msim_irq_handler(irq_t *irq)
    9898{
    9999        if ((irq->notif_cfg.notify) && (irq->notif_cfg.answerbox))
     
    111111}
    112112
    113 static irq_ownership_t msim_claim(void)
     113static irq_ownership_t msim_claim(void *instance)
    114114{
    115115        return IRQ_ACCEPT;
  • kernel/arch/mips32/src/drivers/serial.c

    rfa09449 r6cd9aa6  
    113113
    114114/** Process keyboard interrupt. Does not work in simics? */
    115 static void serial_irq_handler(irq_t *irq, void *arg, ...)
     115static void serial_irq_handler(irq_t *irq)
    116116{
    117117        if ((irq->notif_cfg.notify) && (irq->notif_cfg.answerbox))
     
    121121}
    122122
    123 static irq_ownership_t serial_claim(void)
     123static irq_ownership_t serial_claim(void *instance)
    124124{
    125125        return IRQ_ACCEPT;
  • kernel/arch/mips32/src/exception.c

    rfa09449 r6cd9aa6  
    145145       
    146146        /* decode interrupt number and process the interrupt */
    147         cause = (cp0_cause_read() >> 8) &0xff;
     147        cause = (cp0_cause_read() >> 8) & 0xff;
    148148       
    149149        for (i = 0; i < 8; i++) {
     
    154154                                 * The IRQ handler was found.
    155155                                 */
    156                                 irq->handler(irq, irq->arg);
     156                                irq->handler(irq);
    157157                                spinlock_unlock(&irq->lock);
    158158                        } else {
     
    161161                                 */
    162162#ifdef CONFIG_DEBUG
    163                                 printf("cpu%u: spurious interrupt (inum=%d)\n", CPU->id, i);
     163                                printf("cpu%u: spurious interrupt (inum=%d)\n",
     164                                    CPU->id, i);
    164165#endif
    165166                        }
  • kernel/arch/mips32/src/interrupt.c

    rfa09449 r6cd9aa6  
    101101}
    102102
    103 static irq_ownership_t timer_claim(void)
     103static irq_ownership_t timer_claim(void *instance)
    104104{
    105105        return IRQ_ACCEPT;
    106106}
    107107
    108 static void timer_irq_handler(irq_t *irq, void *arg, ...)
     108static void timer_irq_handler(irq_t *irq)
    109109{
    110110        unsigned long drift;
Note: See TracChangeset for help on using the changeset viewer.