mirror of
https://github.com/apache/nuttx.git
synced 2025-01-13 08:38:38 +08:00
greenhills: fix the arch_setjmp.S build error
CC: bch/bchlib_read.c [asarm] (error #2067) machine/arm/gnu/arch_setjmp.S 34: unknown instruction .syntax unified --^ [asarm] (error #2230) machine/arm/gnu/arch_setjmp.S 62: bad directive .type setjmp , function -----------------^ [asarm] (error) errors during processing Signed-off-by: guoshichao <guoshichao@xiaomi.com>
This commit is contained in:
parent
693e869404
commit
ed9d57b501
1 changed files with 11 additions and 0 deletions
|
@ -31,7 +31,9 @@
|
|||
.globl setjmp
|
||||
.globl longjmp
|
||||
|
||||
#ifndef __ghs__
|
||||
.syntax unified
|
||||
#endif
|
||||
.file "setjmp.S"
|
||||
|
||||
/****************************************************************************
|
||||
|
@ -59,7 +61,12 @@
|
|||
*
|
||||
****************************************************************************/
|
||||
|
||||
#ifndef __ghs__
|
||||
.type setjmp, function
|
||||
#else
|
||||
.type setjmp, $function
|
||||
#endif
|
||||
|
||||
setjmp:
|
||||
|
||||
/* Store callee-saved Core registers */
|
||||
|
@ -121,7 +128,11 @@ setjmp:
|
|||
*
|
||||
****************************************************************************/
|
||||
|
||||
#ifndef __ghs__
|
||||
.type longjmp, function
|
||||
#else
|
||||
.type longjmp, $function
|
||||
#endif
|
||||
longjmp:
|
||||
|
||||
/* Load callee-saved Core registers */
|
||||
|
|
Loading…
Reference in a new issue