Skip to content

Commit

Permalink
drivers: interrupt_controller: nuclei_eclic: do not modifiy trap entry
Browse files Browse the repository at this point in the history
RISC-V trap entry is handled in soc/common/riscv-privileged/vector.S.
Remove the redundant modification in CLIC driver.

Signed-off-by: Jimmy Zheng <[email protected]>
  • Loading branch information
jimmyzhe authored and nashif committed Jul 12, 2024
1 parent f989ed9 commit 7802fff
Showing 1 changed file with 0 additions and 5 deletions.
5 changes: 0 additions & 5 deletions drivers/interrupt_controller/intc_nuclei_eclic.c
Original file line number Diff line number Diff line change
Expand Up @@ -83,9 +83,6 @@ struct CLICCTRL {
volatile uint8_t INTCTRL;
};

/** ECLIC Mode mask for MTVT CSR Register */
#define ECLIC_MODE_MTVEC_Msk 3U

/** CLIC INTATTR: TRIG Mask */
#define CLIC_INTATTR_TRIG_Msk 0x3U

Expand Down Expand Up @@ -178,8 +175,6 @@ static int nuclei_eclic_init(const struct device *dev)
ECLIC_CTRL[i] = (struct CLICCTRL) { 0 };
}

csr_write(mtvec, ((csr_read(mtvec) & 0xFFFFFFC0) | ECLIC_MODE_MTVEC_Msk));

nlbits = ECLIC_CFG.b.nlbits;
intctlbits = ECLIC_INFO.b.intctlbits;
max_prio = mask8(intctlbits - nlbits);
Expand Down

0 comments on commit 7802fff

Please sign in to comment.