Skip to content

Commit 7802fff

Browse files
jimmyzhenashif
authored andcommitted
drivers: interrupt_controller: nuclei_eclic: do not modifiy trap entry
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]>
1 parent f989ed9 commit 7802fff

File tree

1 file changed

+0
-5
lines changed

1 file changed

+0
-5
lines changed

drivers/interrupt_controller/intc_nuclei_eclic.c

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -83,9 +83,6 @@ struct CLICCTRL {
8383
volatile uint8_t INTCTRL;
8484
};
8585

86-
/** ECLIC Mode mask for MTVT CSR Register */
87-
#define ECLIC_MODE_MTVEC_Msk 3U
88-
8986
/** CLIC INTATTR: TRIG Mask */
9087
#define CLIC_INTATTR_TRIG_Msk 0x3U
9188

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

181-
csr_write(mtvec, ((csr_read(mtvec) & 0xFFFFFFC0) | ECLIC_MODE_MTVEC_Msk));
182-
183178
nlbits = ECLIC_CFG.b.nlbits;
184179
intctlbits = ECLIC_INFO.b.intctlbits;
185180
max_prio = mask8(intctlbits - nlbits);

0 commit comments

Comments
 (0)