1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
|
# DP: Backport r241084 from trunk
syscall: don't use pt_regs in clone_linux.c
It's unnecessary and it reportedly breaks the build on arm64 GNU/Linux.
Reviewed-on: https://go-review.googlesource.com/30978
Index: b/src/libgo/go/syscall/clone_linux.c
===================================================================
--- a/src/libgo/go/syscall/clone_linux.c (revision 241083)
+++ b/src/libgo/go/syscall/clone_linux.c (revision 241084)
@@ -5,18 +5,17 @@
license that can be found in the LICENSE file. */
#include <errno.h>
-#include <asm/ptrace.h>
#include <sys/syscall.h>
#include "runtime.h"
long rawClone (unsigned long flags, void *child_stack, void *ptid,
- void *ctid, struct pt_regs *regs)
+ void *ctid, void *regs)
__asm__ (GOSYM_PREFIX "syscall.rawClone")
__attribute__ ((no_split_stack));
long
-rawClone (unsigned long flags, void *child_stack, void *ptid, void *ctid, struct pt_regs *regs)
+rawClone (unsigned long flags, void *child_stack, void *ptid, void *ctid, void *regs)
{
#if defined(__arc__) || defined(__aarch64__) || defined(__arm__) || defined(__mips__) || defined(__hppa__) || defined(__powerpc__) || defined(__score__) || defined(__i386__) || defined(__xtensa__)
// CLONE_BACKWARDS
|