]> Zhao Yanbai Git Server - acecode.git/commitdiff
...
authorAceVest <zhaoyanbai@126.com>
Fri, 27 Jul 2018 08:44:21 +0000 (16:44 +0800)
committerAceVest <zhaoyanbai@126.com>
Fri, 27 Jul 2018 08:44:21 +0000 (16:44 +0800)
rtos/components/utils/debug.h

index 2abfbdccd4c7a40a777f3790c1b6b153ece7b1e4..13e132180810bb6051228b8b7d153fc748ec3dd6 100644 (file)
@@ -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");