]> Cypherpunks repositories - gostls13.git/commitdiff
[dev.power64] runtime: fix SigaltstackT definition for power64le
authorDave Cheney <dave@cheney.net>
Wed, 22 Oct 2014 21:58:10 +0000 (08:58 +1100)
committerDave Cheney <dave@cheney.net>
Wed, 22 Oct 2014 21:58:10 +0000 (08:58 +1100)
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://golang.org/cl/158360043

src/runtime/defs3_linux.go
src/runtime/defs_linux_power64le.h

index eb65f9d1ed105383b593fb85b1a957a9995d3b56..3551a4fa90766e989683b42de697e6a3d9c23ef9 100644 (file)
@@ -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
index 41db45ca14164493008f29da7dbcb51d3073b13b..64f145672c54d80d834a2d82400edb7f78258905 100644 (file)
@@ -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;