This is the mail archive of the libc-alpha@sourceware.org mailing list for the glibc project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: Linux i386 clone(): %ebx 'frobbing' ?


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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]