Re: SMP Sparc64 : bug in clone?

"David S. Miller" <[email protected]> Mon, 25 Mar 2002 08:36:20 +0000
Newsgroups org.kernel.vger.ultralinux
Message-ID <marc-linux-ultrasparc-101704568223436@msgid-missing>
   From: Erik de Castro Lopo <[email protected]>
   Date: Mon, 25 Mar 2002 19:35:51 +1100

   On Mon, 25 Mar 2002 00:12:25 -0800 (PST)
   "David S. Miller" <[email protected]> wrote:
   
   > sparc64-linux-gcc is only for kernel building, it is not
   > going to work for userland applications.
   
   I have actually tried both the standard gcc and sparc64-linux-gcc.
   The clone() system call does not work correctly in either case.

Perhaps you should look at how the glibc sources use and invoke
clone() in the linuxthreads sparc-specific code.  That does work.

I haven't looked at your sources because I cannot simply grab it
with wget (which doesn't understand https).  You're probably just
doing something silly.  There are all sorts of platform specific
nuances to do with the stack pointer you pass into clone(), on Sparc
for example the stack you pass in must be at least 8 byte aligned.