pussuw commented on a change in pull request #5758:
URL: https://github.com/apache/incubator-nuttx/pull/5758#discussion_r828819535
##########
File path: arch/risc-v/src/mpfs/mpfs_irq.c
##########
@@ -60,45 +61,20 @@ void up_irqinitialize(void)
up_disable_irq(RISCV_IRQ_MTIMER);
- /* enable access from supervisor mode */
-
- putreg32(0x1, MPFS_PLIC_CTRL);
-
/* Disable all global interrupts for current hart */
- uint64_t hart_id = READ_CSR(mhartid);
-
- uint32_t *miebase;
- if (hart_id == 0)
- {
- miebase = (uint32_t *)MPFS_PLIC_H0_MIE0;
- }
- else
- {
- miebase = (uint32_t *)(MPFS_PLIC_H1_MIE0 +
- (hart_id - 1) * MPFS_HART_MIE_OFFSET);
- }
+ uint32_t *iebase = (uint32_t *) mpfs_plic_get_iebase();
Review comment:
Done
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]