lkml.org 
[lkml]   [2003]   [Mar]   [15]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectRe: Hammer thread fixes
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/

\
 
 \ /
  Last update: 2005-03-22 13:34    [W:0.033 / U:1.360 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site