nptl: Do not use madvise
commit4d6b4178c8e49dd6d3067a399e2a49d5379b7750
authorChristophe Lyon <christophe.lyon@st.com>
Wed, 4 Jul 2018 15:55:33 +0000 (4 17:55 +0200)
committerWaldemar Brodkorb <wbrodkorb@conet.de>
Fri, 10 Aug 2018 14:02:45 +0000 (10 16:02 +0200)
treee8aca0bbcfa632bfc5407cadf25ee3ba8c40fd6d
parenteae96c1e2b02af0554bbae189af2c8091cb581bf
nptl: Do not use madvise

start_thread() uses it, but it is not supported on MMU-less systems.

* libpthread/nptl/pthread_create.c (start_thread): Call madvise
only if __ARCH_USE_MMU__ is defined.

Signed-off-by: Mickaël Guêné <mickael.guene@st.com>
Signed-off-by: Christophe Lyon <christophe.lyon@st.com>
libpthread/nptl/pthread_create.c