mirror of
https://sourceware.org/git/glibc.git
synced 2025-01-05 09:01:07 +00:00
Update.
* sysdeps/unix/sysv/linux/x86_64/clone.S: Add support for the new clone parameters.
This commit is contained in:
parent
a05be180bc
commit
e2b80a5802
@ -1,5 +1,8 @@
|
|||||||
2003-03-04 Ulrich Drepper <drepper@redhat.com>
|
2003-03-04 Ulrich Drepper <drepper@redhat.com>
|
||||||
|
|
||||||
|
* sysdeps/unix/sysv/linux/x86_64/clone.S: Add support for the new
|
||||||
|
clone parameters.
|
||||||
|
|
||||||
* po/sv.po: Update from translation team.
|
* po/sv.po: Update from translation team.
|
||||||
|
|
||||||
2003-03-04 Andreas Jaeger <aj@suse.de>
|
2003-03-04 Andreas Jaeger <aj@suse.de>
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
/* Copyright (C) 2001,02 Free Software Foundation, Inc.
|
/* Copyright (C) 2001, 2002, 2003 Free Software Foundation, Inc.
|
||||||
This file is part of the GNU C Library.
|
This file is part of the GNU C Library.
|
||||||
|
|
||||||
The GNU C Library is free software; you can redistribute it and/or
|
The GNU C Library is free software; you can redistribute it and/or
|
||||||
@ -31,16 +31,22 @@
|
|||||||
the kernel entry is:
|
the kernel entry is:
|
||||||
int clone (long flags, void *child_stack).
|
int clone (long flags, void *child_stack).
|
||||||
|
|
||||||
The parameters are passed in register from userland:
|
The parameters are passed in register and on the stack from userland:
|
||||||
rdi: fn
|
rdi: fn
|
||||||
rsi: child_stack
|
rsi: child_stack
|
||||||
rdx: flags
|
rdx: flags
|
||||||
rcx: arg
|
rcx: arg
|
||||||
|
r8d: TID field in parent
|
||||||
|
r9d: thread pointer
|
||||||
|
%esp+8: TID field in child
|
||||||
|
|
||||||
The kernel expects:
|
The kernel expects:
|
||||||
rax: system call number
|
rax: system call number
|
||||||
rdi: flags
|
rdi: flags
|
||||||
rsi: child_stack */
|
rsi: child_stack
|
||||||
|
rdx: TID field in parent
|
||||||
|
r10: TID field in child
|
||||||
|
r8: thread pointer */
|
||||||
|
|
||||||
|
|
||||||
.text
|
.text
|
||||||
@ -62,6 +68,9 @@ ENTRY (BP_SYM (__clone))
|
|||||||
|
|
||||||
/* Do the system call. */
|
/* Do the system call. */
|
||||||
movq %rdx, %rdi
|
movq %rdx, %rdi
|
||||||
|
movq %r8, %rdx
|
||||||
|
movq %r9, %r8
|
||||||
|
movq 8(%rsp), %r10
|
||||||
movq $SYS_ify(clone),%rax
|
movq $SYS_ify(clone),%rax
|
||||||
syscall
|
syscall
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user