Skip to content

Commit

Permalink
Attach the Common Interrupt Handlers earlier
Browse files Browse the repository at this point in the history
  • Loading branch information
lupyuen committed Nov 6, 2023
1 parent 8f318c3 commit 89bfb73
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions arch/risc-v/src/jh7110/jh7110_irq.c
Original file line number Diff line number Diff line change
Expand Up @@ -51,6 +51,11 @@ void up_irqinitialize(void)
_info("b\n");////
up_irq_save();

/* Attach the common interrupt handler */

_info("f\n");////
riscv_exception_attach();

/* Disable all global interrupts */

_info("c\n");////
Expand Down Expand Up @@ -79,11 +84,6 @@ void up_irqinitialize(void)
_info("e\n");////
putreg32(0, JH7110_PLIC_THRESHOLD);

/* Attach the common interrupt handler */

_info("f\n");////
riscv_exception_attach();

#ifdef CONFIG_SMP
/* Clear RISCV_IPI for CPU0 */

Expand Down

0 comments on commit 89bfb73

Please sign in to comment.