summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorMeco Man <[email protected]>2021-04-12 23:01:35 +0800
committerMeco Man <[email protected]>2021-04-12 23:01:35 +0800
commit0d21f37119ea1620770cc5ed9866d3dc180f4eed (patch)
tree3d29a733717b00027574fb459349278f36336334 /src
parentb2f23f2a96a960db5464ee2a03cddda909b2c3a4 (diff)
[kernel][irq] 优化DEBUG打印输出位置,防止造成歧义
Diffstat (limited to 'src')
-rw-r--r--src/irq.c6
1 files 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);