aboutsummaryrefslogtreecommitdiffstats
path: root/arch/mips/sibyte/bcm1480/irq.c
diff options
context:
space:
mode:
authorRalf Baechle <ralf@linux-mips.org>2006-10-07 14:44:33 -0400
committerRalf Baechle <ralf@linux-mips.org>2006-10-07 21:38:28 -0400
commit937a801576f954bd030d7c4a5a94571710d87c0b (patch)
tree48d3440f765b56cf32a89b4b8193dd033d8227a8 /arch/mips/sibyte/bcm1480/irq.c
parent31aa36658a123263a9a69896e348b9600e050679 (diff)
[MIPS] Complete fixes after removal of pt_regs argument to int handlers.
Signed-off-by: Ralf Baechle <ralf@linux-mips.org>
Diffstat (limited to 'arch/mips/sibyte/bcm1480/irq.c')
-rw-r--r--arch/mips/sibyte/bcm1480/irq.c27
1 files changed, 13 insertions, 14 deletions
diff --git a/arch/mips/sibyte/bcm1480/irq.c b/arch/mips/sibyte/bcm1480/irq.c
index a46b75b23ecb..0c00f676b8b3 100644
--- a/arch/mips/sibyte/bcm1480/irq.c
+++ b/arch/mips/sibyte/bcm1480/irq.c
@@ -25,6 +25,7 @@
25#include <linux/kernel_stat.h> 25#include <linux/kernel_stat.h>
26 26
27#include <asm/errno.h> 27#include <asm/errno.h>
28#include <asm/irq_regs.h>
28#include <asm/signal.h> 29#include <asm/signal.h>
29#include <asm/system.h> 30#include <asm/system.h>
30#include <asm/ptrace.h> 31#include <asm/ptrace.h>
@@ -284,8 +285,7 @@ void __init init_bcm1480_irqs(void)
284} 285}
285 286
286 287
287static irqreturn_t bcm1480_dummy_handler(int irq, void *dev_id, 288static irqreturn_t bcm1480_dummy_handler(int irq, void *dev_id)
288 struct pt_regs *regs)
289{ 289{
290 return IRQ_NONE; 290 return IRQ_NONE;
291} 291}
@@ -453,7 +453,7 @@ void __init arch_init_irq(void)
453#define duart_out(reg, val) csr_out32(val, IOADDR(A_DUART_CHANREG(kgdb_port,reg))) 453#define duart_out(reg, val) csr_out32(val, IOADDR(A_DUART_CHANREG(kgdb_port,reg)))
454#define duart_in(reg) csr_in32(IOADDR(A_DUART_CHANREG(kgdb_port,reg))) 454#define duart_in(reg) csr_in32(IOADDR(A_DUART_CHANREG(kgdb_port,reg)))
455 455
456void bcm1480_kgdb_interrupt(struct pt_regs *regs) 456static void bcm1480_kgdb_interrupt(void)
457{ 457{
458 /* 458 /*
459 * Clear break-change status (allow some time for the remote 459 * Clear break-change status (allow some time for the remote
@@ -464,16 +464,15 @@ void bcm1480_kgdb_interrupt(struct pt_regs *regs)
464 mdelay(500); 464 mdelay(500);
465 duart_out(R_DUART_CMD, V_DUART_MISC_CMD_RESET_BREAK_INT | 465 duart_out(R_DUART_CMD, V_DUART_MISC_CMD_RESET_BREAK_INT |
466 M_DUART_RX_EN | M_DUART_TX_EN); 466 M_DUART_RX_EN | M_DUART_TX_EN);
467 set_async_breakpoint(&regs->cp0_epc); 467 set_async_breakpoint(&get_irq_regs()->cp0_epc);
468} 468}
469 469
470#endif /* CONFIG_KGDB */ 470#endif /* CONFIG_KGDB */
471 471
472extern void bcm1480_timer_interrupt(struct pt_regs *regs); 472extern void bcm1480_timer_interrupt(void);
473extern void bcm1480_mailbox_interrupt(struct pt_regs *regs); 473extern void bcm1480_mailbox_interrupt(void);
474extern void bcm1480_kgdb_interrupt(struct pt_regs *regs);
475 474
476asmlinkage void plat_irq_dispatch(struct pt_regs *regs) 475asmlinkage void plat_irq_dispatch(void)
477{ 476{
478 unsigned int pending; 477 unsigned int pending;
479 478
@@ -486,21 +485,21 @@ asmlinkage void plat_irq_dispatch(struct pt_regs *regs)
486 485
487#ifdef CONFIG_SIBYTE_BCM1480_PROF 486#ifdef CONFIG_SIBYTE_BCM1480_PROF
488 if (pending & CAUSEF_IP7) /* Cpu performance counter interrupt */ 487 if (pending & CAUSEF_IP7) /* Cpu performance counter interrupt */
489 sbprof_cpu_intr(exception_epc(regs)); 488 sbprof_cpu_intr();
490 else 489 else
491#endif 490#endif
492 491
493 if (pending & CAUSEF_IP4) 492 if (pending & CAUSEF_IP4)
494 bcm1480_timer_interrupt(regs); 493 bcm1480_timer_interrupt();
495 494
496#ifdef CONFIG_SMP 495#ifdef CONFIG_SMP
497 else if (pending & CAUSEF_IP3) 496 else if (pending & CAUSEF_IP3)
498 bcm1480_mailbox_interrupt(regs); 497 bcm1480_mailbox_interrupt();
499#endif 498#endif
500 499
501#ifdef CONFIG_KGDB 500#ifdef CONFIG_KGDB
502 else if (pending & CAUSEF_IP6) 501 else if (pending & CAUSEF_IP6)
503 bcm1480_kgdb_interrupt(regs); /* KGDB (uart 1) */ 502 bcm1480_kgdb_interrupt(); /* KGDB (uart 1) */
504#endif 503#endif
505 504
506 else if (pending & CAUSEF_IP2) { 505 else if (pending & CAUSEF_IP2) {
@@ -521,9 +520,9 @@ asmlinkage void plat_irq_dispatch(struct pt_regs *regs)
521 520
522 if (mask_h) { 521 if (mask_h) {
523 if (mask_h ^ 1) 522 if (mask_h ^ 1)
524 do_IRQ(fls64(mask_h) - 1, regs); 523 do_IRQ(fls64(mask_h) - 1);
525 else 524 else
526 do_IRQ(63 + fls64(mask_l), regs); 525 do_IRQ(63 + fls64(mask_l));
527 } 526 }
528 } 527 }
529} 528}