]> git.baikalelectronics.ru Git - kernel.git/commit
sh: fix futex/robust_list on nommu models
authorRich Felker <dalias@libc.org>
Fri, 15 Jul 2016 03:46:52 +0000 (03:46 +0000)
committerRich Felker <dalias@libc.org>
Sun, 31 Jul 2016 03:33:32 +0000 (03:33 +0000)
commite35daf8b42a7f854e1826e188ec7eb3143fb774b
treecb988c15311990065e9c71a9890c5cc448caefdb
parent97749d647e3747bebdc8d80cb3eaeec66dc0b9da
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>
arch/sh/Kconfig