arch/risc-v: Correct epc adjustment with C ISA
Signed-off-by: Huang Qi <huangqi3@xiaomi.com>
This commit is contained in:
parent
1f53a058fa
commit
33df35f003
@ -67,7 +67,7 @@ void *bl602_dispatch_irq(uint32_t vector, uint32_t *regs)
|
||||
|
||||
if (BL602_IRQ_ECALLM == irq)
|
||||
{
|
||||
*mepc += 4;
|
||||
*mepc += 2;
|
||||
}
|
||||
|
||||
/* Acknowledge the interrupt */
|
||||
|
@ -72,7 +72,7 @@ void *fe310_dispatch_irq(uint32_t vector, uint32_t *regs)
|
||||
|
||||
if (FE310_IRQ_ECALLM == irq)
|
||||
{
|
||||
*mepc += 4;
|
||||
*mepc += 2;
|
||||
}
|
||||
|
||||
/* Acknowledge the interrupt */
|
||||
|
@ -65,7 +65,7 @@ void *rv32m1_dispatch_irq(uint32_t vector, uint32_t *regs)
|
||||
|
||||
if (RV32M1_IRQ_ECALL_M == irq)
|
||||
{
|
||||
*mepc += 4;
|
||||
*mepc += 2;
|
||||
}
|
||||
|
||||
if (RV32M1_IRQ_INTMUX0 <= irq)
|
||||
|
Loading…
Reference in New Issue
Block a user