summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBernard Xiong <[email protected]>2021-04-16 23:03:56 +0800
committerGitHub <[email protected]>2021-04-16 23:03:56 +0800
commit57da8b57321652b61b8a60a944da3a99aef8a516 (patch)
treeb6ad1d7ac296bdfd76bc0268d8facf384291df9c
parent979ac3d8d406d5fcaefc8714c44ca77aec27915f (diff)
parent305f9946d844f624fedc20b171685701fe5a2bd3 (diff)
Merge pull request #4602 from mysterywolf/isr
[kernel][irq] 优化DEBUG打印输出位置,防止造成歧义
-rw-r--r--src/irq.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/irq.c b/src/irq.c
index 177c1a9ff5..65fc2ea5e0 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 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();