From 19f793762697103708450f65415d4c935a2164a8 Mon Sep 17 00:00:00 2001 From: AceVest Date: Fri, 27 Jul 2018 16:44:21 +0800 Subject: [PATCH] ... --- rtos/components/utils/debug.h | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/rtos/components/utils/debug.h b/rtos/components/utils/debug.h index 2abfbdc..13e1321 100644 --- a/rtos/components/utils/debug.h +++ b/rtos/components/utils/debug.h @@ -11,4 +11,7 @@ void debug(); -void asm_debug(); +// 在mac系统调用asm_debug会自动调用_asm_debug +// 在linux系统上会自动调用asm_debug +// 所以这里强制编译器生成的代码只能调用asm_debug +void asm_debug() asm("asm_debug"); -- 2.44.0