blktrace: needs MMU support
[buildroot-gz.git] / package / uclibc / 0001-arm-fix-compile-in-thumb-mode.patch
blob43fcb6f4347e5745760175a751a9ee3a7d8b9245
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>
17 ---
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
25 @@ -43,6 +43,9 @@
26 }) \
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).
35 @@ -83,10 +86,6 @@
36 } \
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)
43 #endif
45 #define INTERNAL_SYSCALL_ERROR_P(val, err) \
46 --
47 2.7.4