[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: basic system call question
Timur Tabi wrote:
>
> ** Reply to message from "Joseph A. Knapka" <jknapka@earthlink.net> on Tue, 15
> May 2001 12:58:46 -0600
>
> > I just read the "Extended Asm" section of the GCC info
> > pages, but didn't find anything about "anonymous" parameters. There
> > must be some machine-dependent docs somewhere. The "i386 Dependencies"
> > section of the "gas" info was not helpful either :-(
>
> Anonymous parameters are news to me, also, and I consider myself an inline asm
> wizard. However, the asm code clearly shows the correct value going into eax:
>
> .LM155:
> movl $120,%eax
>
> __NR_clone is defined as 120, so this code is correct.
I assume you mean this is what the code looks like after it's
been through gcc...
BTW, this isn't 2.4.3 specific -- the exact same code
is in my 2.4.0 tree.
Thanks,
-- Joe
-- Joseph A Knapka
"If I ever get reincarnated... let me make certain I don't come back
as a paperclip." -- protagonist, H Murakami's "Hard-boiled Wonderland"
// Linux MM Documentation in progress:
// http://home.earthlink.net/~jknapka/linux-mm/vmoutline.html
* Evolution is an "unproven theory" in the same sense that gravity is. *
-
Kernelnewbies: Help each other learn about the Linux kernel.
Archive: http://mail.nl.linux.org/
IRC Channel: irc.openprojects.net / #kernelnewbies
Web Page: http://www.kernelnewbies.org/