From 0d21f37119ea1620770cc5ed9866d3dc180f4eed Mon Sep 17 00:00:00 2001 From: Meco Man <920369182@qq.com> Date: Mon, 12 Apr 2021 23:01:35 +0800 Subject: [PATCH 1/2] =?UTF-8?q?[kernel][irq]=20=E4=BC=98=E5=8C=96DEBUG?= =?UTF-8?q?=E6=89=93=E5=8D=B0=E8=BE=93=E5=87=BA=E4=BD=8D=E7=BD=AE=EF=BC=8C?= =?UTF-8?q?=E9=98=B2=E6=AD=A2=E9=80=A0=E6=88=90=E6=AD=A7=E4=B9=89?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/irq.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/irq.c b/src/irq.c index 177c1a9ff5..2d886d3eca 100644 --- a/src/irq.c +++ b/src/irq.c @@ -66,13 +66,13 @@ void rt_interrupt_enter(void) { rt_base_t level; - RT_DEBUG_LOG(RT_DEBUG_IRQ, ("irq coming..., irq nest:%d\n", - rt_interrupt_nest)); - level = rt_hw_interrupt_disable(); rt_interrupt_nest ++; RT_OBJECT_HOOK_CALL(rt_interrupt_enter_hook,()); rt_hw_interrupt_enable(level); + + RT_DEBUG_LOG(RT_DEBUG_IRQ, ("irq has come..., irq nest:%d\n", + rt_interrupt_nest)); } RTM_EXPORT(rt_interrupt_enter); From 305f9946d844f624fedc20b171685701fe5a2bd3 Mon Sep 17 00:00:00 2001 From: Meco Man <920369182@qq.com> Date: Mon, 12 Apr 2021 23:08:40 +0800 Subject: [PATCH 2/2] clarify the context --- src/irq.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/irq.c b/src/irq.c index 2d886d3eca..65fc2ea5e0 100644 --- a/src/irq.c +++ b/src/irq.c @@ -71,7 +71,7 @@ void rt_interrupt_enter(void) RT_OBJECT_HOOK_CALL(rt_interrupt_enter_hook,()); rt_hw_interrupt_enable(level); - RT_DEBUG_LOG(RT_DEBUG_IRQ, ("irq has come..., irq nest:%d\n", + RT_DEBUG_LOG(RT_DEBUG_IRQ, ("irq has come..., irq current nest:%d\n", rt_interrupt_nest)); } RTM_EXPORT(rt_interrupt_enter); @@ -87,7 +87,7 @@ void rt_interrupt_leave(void) { rt_base_t level; - RT_DEBUG_LOG(RT_DEBUG_IRQ, ("irq leave, irq nest:%d\n", + RT_DEBUG_LOG(RT_DEBUG_IRQ, ("irq is going to leave, irq current nest:%d\n", rt_interrupt_nest)); level = rt_hw_interrupt_disable();