This is the mail archive of the
libc-alpha@sourceware.org
mailing list for the glibc project.
Re: Linux i386 clone(): %ebx 'frobbing' ?
- From: Daniel Jacobowitz <dan at debian dot org>
- To: libc-alpha at sourceware dot org
- Date: Fri, 15 Feb 2008 13:54:39 -0500
- Subject: Re: Linux i386 clone(): %ebx 'frobbing' ?
- References: <20080215184228.GA6687@ubuntu>
Dunno what this had to do with lkml...
On Fri, Feb 15, 2008 at 08:42:28PM +0200, Ahmed S. Darwish wrote:
> I don't understand how the `fn' argument reached the child thread
> in the %ebx register. It's said in the comment that `fn' will be
> popped to child 'in the ebx frobbing below'. But what does that mean ?
After the int 0x80 the next instructions run once in the parent on the
parent stack and once in the child on the child stack. That pops
%ebx.
--
Daniel Jacobowitz
CodeSourcery