RISC-V: No need to pass scause as arg to do_IRQ()

The scause is already part of pt_regs so no need to pass
scause as separate arg to do_IRQ().

Reviewed-by: Christoph Hellwig <hch@lst.de>
Signed-off-by: Anup Patel <anup@brainfault.org>
Signed-off-by: Palmer Dabbelt <palmer@sifive.com>
This commit is contained in:
Anup Patel 2018-10-02 12:14:54 -07:00 committed by Palmer Dabbelt
parent 84df9525b0
commit 1ed4237ab6
No known key found for this signature in database
GPG Key ID: EF4CA1502CCBAB41
2 changed files with 2 additions and 3 deletions

View File

@ -168,7 +168,6 @@ ENTRY(handle_exception)
/* Handle interrupts */ /* Handle interrupts */
move a0, sp /* pt_regs */ move a0, sp /* pt_regs */
move a1, s4 /* scause */
tail do_IRQ tail do_IRQ
1: 1:
/* Exceptions run with interrupts enabled */ /* Exceptions run with interrupts enabled */

View File

@ -24,12 +24,12 @@
*/ */
#define INTERRUPT_CAUSE_FLAG (1UL << (__riscv_xlen - 1)) #define INTERRUPT_CAUSE_FLAG (1UL << (__riscv_xlen - 1))
asmlinkage void __irq_entry do_IRQ(struct pt_regs *regs, unsigned long cause) asmlinkage void __irq_entry do_IRQ(struct pt_regs *regs)
{ {
struct pt_regs *old_regs = set_irq_regs(regs); struct pt_regs *old_regs = set_irq_regs(regs);
irq_enter(); irq_enter();
switch (cause & ~INTERRUPT_CAUSE_FLAG) { switch (regs->scause & ~INTERRUPT_CAUSE_FLAG) {
case INTERRUPT_CAUSE_TIMER: case INTERRUPT_CAUSE_TIMER:
riscv_timer_interrupt(); riscv_timer_interrupt();
break; break;