We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent fa0bbaf commit 7afbcdcCopy full SHA for 7afbcdc
drivers/interrupt_controller/intc_plic.c
@@ -29,7 +29,7 @@
29
#define PLIC_IRQS (CONFIG_NUM_IRQS - CONFIG_2ND_LVL_ISR_TBL_OFFSET)
30
#define PLIC_EN_SIZE ((PLIC_IRQS >> 5) + 1)
31
32
-#define PLIC_EDGE_TRIG_TYPE (PLIC_MAX_PRIO + DT_INST_PROP(0, riscv_trigger_reg_offset))
+#define PLIC_EDGE_TRIG_TYPE (DT_INST_REG_ADDR(0) + DT_INST_PROP(0, riscv_trigger_reg_offset))
33
#define PLIC_EDGE_TRIG_SHIFT 5
34
35
struct plic_regs_t {
0 commit comments