Browse Source

arm: fix compile in thumb mode

Fix a regression introduced by commit
0550ecce0e6580c5ad34e9a9a39ff18ccf8774f9

Reported by Buildroot developers.

Embedded test must be extented to ARMv7 thumb2 builds to
find such regressions next time. It wasn't triggered by a
cortex-m4 ARM noMMU build.
Waldemar Brodkorb 7 years ago
parent
commit
bbd7151f79
1 changed files with 3 additions and 4 deletions
  1. 3 4
      libc/sysdeps/linux/arm/bits/syscalls.h

+ 3 - 4
libc/sysdeps/linux/arm/bits/syscalls.h

@@ -43,6 +43,9 @@
    })									\
 )
 
+#define INTERNAL_SYSCALL_ARM(name, err, nr, args...)           \
+	INTERNAL_SYSCALL_NCS(__ARM_NR_##name, err, nr, args)
+
 #if defined(__thumb__)
 /* We can't use push/pop inside the asm because that breaks
    unwinding (ie. thread cancellation).
@@ -83,10 +86,6 @@
      }									\
      (int) __internal_sys_result; }) \
 )
-
-#undef INTERNAL_SYSCALL_ARM
-#define INTERNAL_SYSCALL_ARM(name, err, nr, args...)           \
-	INTERNAL_SYSCALL_NCS(__ARM_NR_##name, err, nr, args)
 #endif
 
 #define INTERNAL_SYSCALL_ERROR_P(val, err) \