fix(freertos): ZCMP workaround: restore RISC-V interrupt threshold after enabling

This commit is contained in:
Alexey Lapshin
2026-08-31 11:35:35 +08:00
committed by BOT
parent da344a7d59
commit 1e51e9a601
2 changed files with 2 additions and 2 deletions
@@ -300,8 +300,8 @@ BaseType_t xPortStartScheduler(void)
/* Setup the hardware to generate the tick. */ /* Setup the hardware to generate the tick. */
vPortSetupTimer(); vPortSetupTimer();
esprv_int_set_threshold(RVHAL_INTR_ENABLE_THRESH); /* set global interrupt masking level */
rv_utils_intr_global_enable(); rv_utils_intr_global_enable();
esprv_int_set_threshold(RVHAL_INTR_ENABLE_THRESH); /* set global interrupt masking level */
vPortYield(); vPortYield();
@@ -170,8 +170,8 @@ BaseType_t xPortStartScheduler(void)
/* Setup the hardware to generate the tick. */ /* Setup the hardware to generate the tick. */
vPortSetupTimer(); vPortSetupTimer();
esprv_int_set_threshold(RVHAL_INTR_ENABLE_THRESH); /* set global interrupt masking level */
rv_utils_intr_global_enable(); rv_utils_intr_global_enable();
esprv_int_set_threshold(RVHAL_INTR_ENABLE_THRESH); /* set global interrupt masking level */
vPortYield(); vPortYield();