mirror of
https://sourceware.org/git/glibc.git
synced 2025-12-24 17:51:17 +03:00
powerpc64: Add the clone3 wrapper
It follows the internal signature: extern int clone3 (struct clone_args *__cl_args, size_t __size, int (*__func) (void *__arg), void *__arg); The powerpc64 ABI requires an initial stackframe so the child can store/restore the TOC. It is create prior calling clone3 by adjusting the stack size (since kernel will compute the stack as stack plus size). Checked on powerpc64-linux-gnu (power8, kernel 6.0) and powerpc64le-linux-gnu (power9, kernel 4.18). Reviewed-by: Paul E. Murphy <murphyp@linux.ibm.com>
This commit is contained in:
committed by
Adhemerval Zanella
parent
fb95c31638
commit
16e424a325
@@ -214,6 +214,7 @@
|
||||
#if defined(__PPC64__) || defined(__powerpc64__)
|
||||
#define HAVE_CLOCK_GETRES64_VSYSCALL "__kernel_clock_getres"
|
||||
#define HAVE_CLOCK_GETTIME64_VSYSCALL "__kernel_clock_gettime"
|
||||
#define HAVE_CLONE3_WRAPPER 1
|
||||
#else
|
||||
#define HAVE_CLOCK_GETRES_VSYSCALL "__kernel_clock_getres"
|
||||
#define HAVE_CLOCK_GETTIME_VSYSCALL "__kernel_clock_gettime"
|
||||
|
||||
Reference in New Issue
Block a user