diff options
author | Dave Cheney <dave@cheney.net> | 2014-10-23 08:58:10 +1100 |
---|---|---|
committer | Dave Cheney <dave@cheney.net> | 2014-10-23 08:58:10 +1100 |
commit | cb7d300f93c28798b4a721d92655794d4dd2950e (patch) | |
tree | 7e6f80f47a683746c5080b1e95bff045854b46b5 | |
parent | 097998292f184b893daa9775d4997b0eb3e7f567 (diff) | |
download | go-cb7d300f93c28798b4a721d92655794d4dd2950e.tar.gz |
[dev.power64] runtime: fix SigaltstackT definition for power64le
Also updated defs3_linux.go but had to manually edit defs_linux_power64le.h. Will regenerate the file when cgo is working natively on ppc64.
LGTM=austin
R=rsc, austin
CC=golang-codereviews
https://codereview.appspot.com/158360043
-rw-r--r-- | src/runtime/defs3_linux.go | 2 | ||||
-rw-r--r-- | src/runtime/defs_linux_power64le.h | 6 |
2 files changed, 4 insertions, 4 deletions
diff --git a/src/runtime/defs3_linux.go b/src/runtime/defs3_linux.go index eb65f9d1e..3551a4fa9 100644 --- a/src/runtime/defs3_linux.go +++ b/src/runtime/defs3_linux.go @@ -35,7 +35,7 @@ type Gregset C.elf_gregset_t type FPregset C.elf_fpregset_t type Vreg C.elf_vrreg_t -type Sigaltstack C.struct_sigaltstack +type SigaltstackT C.struct_sigaltstack // PPC64 uses sigcontext in place of mcontext in ucontext. // see http://git.kernel.org/cgit/linux/kernel/git/torvalds/linux.git/tree/arch/powerpc/include/uapi/asm/ucontext.h diff --git a/src/runtime/defs_linux_power64le.h b/src/runtime/defs_linux_power64le.h index 41db45ca1..64f145672 100644 --- a/src/runtime/defs_linux_power64le.h +++ b/src/runtime/defs_linux_power64le.h @@ -147,7 +147,7 @@ enum { //typedef struct Usigset Usigset; typedef struct Ptregs Ptregs; typedef struct Vreg Vreg; -typedef struct Sigaltstack Sigaltstack; +typedef struct SigaltstackT SigaltstackT; typedef struct Sigcontext Sigcontext; typedef struct Ucontext Ucontext; @@ -179,7 +179,7 @@ struct Vreg { uint32 u[4]; }; -struct Sigaltstack { +struct SigaltstackT { byte *ss_sp; int32 ss_flags; byte Pad_cgo_0[4]; @@ -201,7 +201,7 @@ struct Sigcontext { struct Ucontext { uint64 uc_flags; Ucontext *uc_link; - Sigaltstack uc_stack; + SigaltstackT uc_stack; Usigset uc_sigmask; Usigset __unused[15]; Sigcontext uc_mcontext; |