mirror of
https://github.com/espressif/esp-idf.git
synced 2026-10-02 11:10:54 +03:00
fix(riscv): implement a workaround for Zcmp hardware bug
This commit is contained in:
@@ -184,8 +184,8 @@
|
||||
.macro mintthresh_csr_disable reg
|
||||
#if __riscv_zcmp && SOC_CPU_ZCMP_WORKAROUND
|
||||
/* Workaround for triggering an interrupt even when mstatus.mie is 0, when cm.push is called. */
|
||||
li t0, 0xff
|
||||
csrrw \reg, MINTTHRESH_CSR, t0
|
||||
li \reg, 0xff
|
||||
csrrw \reg, MINTTHRESH_CSR, \reg
|
||||
#endif
|
||||
.endm
|
||||
|
||||
|
||||
Reference in New Issue
Block a user