1 From bbd7151f7980c7d075fe652331f01d3aadc73e42 Mon Sep 17 00:00:00 2001
2 From: Waldemar Brodkorb <wbx@uclibc-ng.org>
3 Date: Mon, 8 Aug 2016 06:41:03 +0200
4 Subject: [PATCH] arm: fix compile in thumb mode
6 Fix a regression introduced by commit
7 0550ecce0e6580c5ad34e9a9a39ff18ccf8774f9
9 Reported by Buildroot developers.
11 Embedded test must be extented to ARMv7 thumb2 builds to
12 find such regressions next time. It wasn't triggered by a
13 cortex-m4 ARM noMMU build.
15 [yann.morin.1998@free.fr: backport from upstream]
16 Signed-off-by: "Yann E. MORIN" <yann.morin.1998@free.fr>
18 libc/sysdeps/linux/arm/bits/syscalls.h | 7 +++----
19 1 file changed, 3 insertions(+), 4 deletions(-)
21 diff --git a/libc/sysdeps/linux/arm/bits/syscalls.h b/libc/sysdeps/linux/arm/bits/syscalls.h
22 index 5b30564..6c62a9e 100644
23 --- a/libc/sysdeps/linux/arm/bits/syscalls.h
24 +++ b/libc/sysdeps/linux/arm/bits/syscalls.h
29 +#define INTERNAL_SYSCALL_ARM(name, err, nr, args...) \
30 + INTERNAL_SYSCALL_NCS(__ARM_NR_##name, err, nr, args)
32 #if defined(__thumb__)
33 /* We can't use push/pop inside the asm because that breaks
34 unwinding (ie. thread cancellation).
37 (int) __internal_sys_result; }) \
40 -#undef INTERNAL_SYSCALL_ARM
41 -#define INTERNAL_SYSCALL_ARM(name, err, nr, args...) \
42 - INTERNAL_SYSCALL_NCS(__ARM_NR_##name, err, nr, args)
45 #define INTERNAL_SYSCALL_ERROR_P(val, err) \