From 6d0f23782cedd1ddb29922f6418d16585617752e Mon Sep 17 00:00:00 2001 From: guisuanzi Date: Fri, 13 Dec 2024 16:39:23 +0800 Subject: [PATCH] Update irq.c MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit rt_weak rt_bool_t rt_hw_interrupt_is_disabled(void) 返回 return RT_FALSE; 会导致 void rt_sched_post_ctx_switch(struct rt_thread *thread) 无法通过判断造成RISC-V芯片K210产生错误 --- src/irq.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/irq.c b/src/irq.c index f6b33a7c7b0..2bd1a6ae594 100644 --- a/src/irq.c +++ b/src/irq.c @@ -150,7 +150,8 @@ RTM_EXPORT(rt_hw_interrupt_enable); rt_weak rt_bool_t rt_hw_interrupt_is_disabled(void) { - return RT_FALSE; + // return RT_FALSE; + return RT_TURE; } RTM_EXPORT(rt_hw_interrupt_is_disabled); /**@}*/