linux-arm-kernel.lists.infradead.org archive mirror
 help / color / mirror / Atom feed
* clone() for 2.6.33 Cortex-M3 kernel?
@ 2011-05-28 10:59 Sergei Poselenov
  0 siblings, 0 replies; only message in thread
From: Sergei Poselenov @ 2011-05-28 10:59 UTC (permalink / raw)
  To: linux-arm-kernel

Hello all,

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
are enabled.



Thanks for any help.

Regards,
Sergei

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2011-05-28 10:59 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2011-05-28 10:59 clone() for 2.6.33 Cortex-M3 kernel? Sergei Poselenov

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).