Re: Using getpid() often, another way? [was Re: clone() <-> getpid() bug in 2.6?]

David Mosberger
2004-06-07T18:42:30Z

>>>>> On Mon, 7 Jun 2004 15:00:09 +0100, Christoph Hellwig <hch@infradead.org> said:

Christoph> On Mon, Jun 07, 2004 at 02:48:31PM +0100, Sean Neakums
Christoph> wrote:
>> > for example ia64 doesn't have it.

>> Then what is the sys_clone2 implementation in
>> arch/is64/kernel/entry.S for?

Christoph> It's clone with a slightly different calling convention.

Note that the only difference is that the stack-area is expressed as a
range (starting-address + size), rather than a direct stack-pointer
value. IMHO, it was a mistake to not do it that way right from the
beginning (consider that different arches grow stacks in different
directions, for example).

--david