| Message ID | 20260831072837.3529974-5-lordrasmus@gmail.com |
|---|---|
| State | New |
| Headers | show |
| Series | nios2: shared libraries and threads | expand |
diff --git a/libpthread/nptl/sysdeps/unix/sysv/linux/nios2/fork.c b/libpthread/nptl/sysdeps/unix/sysv/linux/nios2/fork.c index 2578af6f4..317edeeb8 100644 --- a/libpthread/nptl/sysdeps/unix/sysv/linux/nios2/fork.c +++ b/libpthread/nptl/sysdeps/unix/sysv/linux/nios2/fork.c @@ -22,9 +22,12 @@ #include <tls.h> +/* nios2 uses the generic clone argument order, i.e. the child tid pointer + comes before the TLS argument -- not last as on arm, where this file was + copied from. */ #define ARCH_FORK() \ INLINE_SYSCALL (clone, 5, \ CLONE_CHILD_SETTID | CLONE_CHILD_CLEARTID | SIGCHLD, \ - NULL, NULL, NULL, &THREAD_SELF->tid) + NULL, NULL, &THREAD_SELF->tid, NULL) #include "../fork.c"