clone() for 2.6.33 Cortex-M3 kernel?
sposelenov at emcraft.com
Sat May 28 06:59:25 EDT 2011
I'm trying to implement the pthread support for a Cortex-M3
Thumb target using the CodeSourcery uclibc toolchain.
I faced the following problem: a simple clone() test program
crashes the system. As I found, the problem is that the
stack for the new clone process, which is passed to the clone()
syscall, returns incorrectly for the new process (32 bytes higher)
and the pointer to the clone function and argument, which are saved
in the new clone stack, clobbered.
Is it a known issue?
In the kernel configuration, the CONFIG_CPU_V7M and CONFIG_ARM_THUMB
Thanks for any help.
More information about the linux-arm