greenhills: fix the arm_signal_handler.S build error

[asarm] (error #2067) /home/guoshichao/work_profile/vela_os/vela_car_6/nuttx/arch/arm/src/common/gnu/arm_signal_handler.S 35: unknown instruction
  .syntax unified
--^

[asarm] (error #2067) /home/guoshichao/work_profile/vela_os/vela_car_6/nuttx/arch/arm/src/common/gnu/arm_signal_handler.S 70: unknown instruction
  .thumb_func
--^

[asarm] (error #2230) /home/guoshichao/work_profile/vela_os/vela_car_6/nuttx/arch/arm/src/common/gnu/arm_signal_handler.S 72: bad directive
  .type up_signal_handler , function
----------------------------^

Signed-off-by: guoshichao <guoshichao@xiaomi.com>
This commit is contained in:
guoshichao
2024-09-11 17:08:56 +08:00
committed by Xiang Xiao
parent 956830170d
commit 74d627f5f0
+8 -1
View File
@@ -32,7 +32,6 @@
* File info
****************************************************************************/
.syntax unified
.file "arm_signal_handler.S"
/****************************************************************************
@@ -67,9 +66,17 @@
****************************************************************************/
.text
#ifdef __ghs__
.thumb
#else
.thumb_func
#endif
.globl up_signal_handler
#ifdef __ghs__
.type up_signal_handler, $function
#else
.type up_signal_handler, function
#endif
up_signal_handler:
/* Save some register */