summaryrefslogtreecommitdiff
path: root/nuttx/arch/sim/src/up_setjmp.S
diff options
context:
space:
mode:
Diffstat (limited to 'nuttx/arch/sim/src/up_setjmp.S')
-rw-r--r--nuttx/arch/sim/src/up_setjmp.S12
1 files changed, 6 insertions, 6 deletions
diff --git a/nuttx/arch/sim/src/up_setjmp.S b/nuttx/arch/sim/src/up_setjmp.S
index a65317c65..20ec5539f 100644
--- a/nuttx/arch/sim/src/up_setjmp.S
+++ b/nuttx/arch/sim/src/up_setjmp.S
@@ -47,7 +47,7 @@
* Private Definitions
**************************************************************************/
-#ifdef __CYGWIN__
+#if !((defined __CYGWIN__) || (defined __APPLE__))
# define SYMBOL(s) _##s
#else
# define SYMBOL(s) s
@@ -79,7 +79,7 @@
.text
.globl SYMBOL(up_setjmp)
-#ifndef __CYGWIN__
+#if !((defined __CYGWIN__) || (defined __APPLE__))
.type SYMBOL(up_setjmp), @function
#endif
SYMBOL(up_setjmp):
@@ -110,11 +110,11 @@ SYMBOL(up_setjmp):
xorl %eax, %eax
ret
-#ifndef __CYGWIN__
+#if !((defined __CYGWIN__) || (defined __APPLE__))
.size SYMBOL(up_setjmp), . - SYMBOL(up_setjmp)
#endif
.globl SYMBOL(up_longjmp)
-#ifndef __CYGWIN__
+#if !((defined __CYGWIN__) || (defined __APPLE__))
.type SYMBOL(up_longjmp), @function
#endif
SYMBOL(up_longjmp):
@@ -135,8 +135,8 @@ SYMBOL(up_longjmp):
/* Jump to saved PC. */
- jmp *%edx
-#ifndef __CYGWIN__
+ jmp (*%edx)
+#if !((defined __CYGWIN__) || (defined __APPLE__))
.size SYMBOL(up_longjmp), . - SYMBOL(up_longjmp)
#endif