Re: Hammer thread fixes

From: Andi Kleen (ak@suse.de)
Date: Sat Mar 15 2003 - 16:24:38 EST


On Sat, Mar 15, 2003 at 01:03:16PM -0800, Ulrich Drepper wrote:
> The appended two fixes are necessary to get NPTL threads running on
> hammer. The changes should be obvious. The exit_group syscall isn't
> present at all so far and the r10 -> r8 register use is necessary
> because syscall parameter #4 (in r10) is already used for the child_tid
> parameter.

It's incorrect like I told you last time. arg 4 is in r10. Linus please don't
apply.

The clone prototype is

        int clone(int flags, unsigned long newsp, void *parent_tid, void *child_tid) ;

        rax: __NR_clone
        rdi: flags
        rsi: newsp
        rdx: parent_tid
        r10: child_tid

See appendix A of the x86-64 ABI for details. The kernel ABI
is different from the user space ABI because of the SYSCALL clobbers.

For exit_group please wait for my next merge.

-Andi
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/



This archive was generated by hypermail 2b29 : Sat Mar 15 2003 - 22:00:44 EST