diff options
author | Rich Felker <dalias@libc.org> | 2016-07-14 23:46:52 -0400 |
---|---|---|
committer | Rich Felker <dalias@libc.org> | 2016-07-30 23:33:32 -0400 |
commit | 72cc564f16ca9f61a1d13f35cb247631d888a78e (patch) | |
tree | cb988c15311990065e9c71a9890c5cc448caefdb /arch/sh/Kconfig | |
parent | 57155c6523074dd937b8feafcfaa98c82218faa6 (diff) |
sh: fix futex/robust_list on nommu models
The futex cmpxchg runtime testing in kernel/futex.c depends on
accesses to address 0 producing EFAULT, which obviously does not work
on nommu. Since SH always has cmpxchg, disable the broken runtime
detection.
At some point this should be fixed at the kernel/futex.c level. UP
machines can always provide a working cmpxchg with interrupt masking,
and SMP cannot function without a working cmpxchg anyway.
Signed-off-by: Rich Felker <dalias@libc.org>
Diffstat (limited to 'arch/sh/Kconfig')
-rw-r--r-- | arch/sh/Kconfig | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/arch/sh/Kconfig b/arch/sh/Kconfig index ceeda5c1a70a..e6d88f9e978a 100644 --- a/arch/sh/Kconfig +++ b/arch/sh/Kconfig | |||
@@ -45,6 +45,7 @@ config SUPERH | |||
45 | select OLD_SIGSUSPEND | 45 | select OLD_SIGSUSPEND |
46 | select OLD_SIGACTION | 46 | select OLD_SIGACTION |
47 | select HAVE_ARCH_AUDITSYSCALL | 47 | select HAVE_ARCH_AUDITSYSCALL |
48 | select HAVE_FUTEX_CMPXCHG if FUTEX | ||
48 | select HAVE_NMI | 49 | select HAVE_NMI |
49 | help | 50 | help |
50 | The SuperH is a RISC processor targeted for use in embedded systems | 51 | The SuperH is a RISC processor targeted for use in embedded systems |