Skip to content

Commit

Permalink
Debug Exception
Browse files Browse the repository at this point in the history
  • Loading branch information
lupyuen committed Jul 28, 2023
1 parent e223446 commit 41756ba
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion arch/risc-v/src/qemu-rv/qemu_rv_irq.c
Original file line number Diff line number Diff line change
Expand Up @@ -94,7 +94,7 @@ void up_irqinitialize(void)
up_irq_enable();
#endif

////Testing
////Testing: Enable all interrupts, all contexts
for (id = RISCV_IRQ_EXT + 1; id < 89; id++) { up_enable_irq(id); } ////
}

Expand Down Expand Up @@ -186,8 +186,13 @@ void up_enable_irq(int irq)

if (0 <= extirq && extirq <= 63) ////TODO: Why 63?
{
////TODO: What about QEMU_RV_PLIC_ENABLE2? Why 32?
modifyreg32(QEMU_RV_PLIC_ENABLE1 + (4 * (extirq / 32)),
0, 1 << (extirq % 32));
////Testing
modifyreg32(QEMU_RV_PLIC_ENABLE2 + (4 * (extirq / 32)),////
0, 1 << (extirq % 32));////
////TODO: Test other contexts
}
else
{
Expand Down

0 comments on commit 41756ba

Please sign in to comment.