1
0
mirror of https://github.com/golang/go synced 2024-11-19 04:14:45 -07:00

[dev.power64] runtime: fix power64le build

Brings defs_linux_power64le.h up to date with the big endian version.

LGTM=rsc
R=rsc, austin
CC=golang-codereviews
https://golang.org/cl/161470043
This commit is contained in:
Dave Cheney 2014-10-28 09:56:33 +11:00
parent 062e354c84
commit 1b130a08d8

View File

@ -88,11 +88,10 @@ enum {
typedef struct Sigset Sigset; typedef struct Sigset Sigset;
typedef struct Timespec Timespec; typedef struct Timespec Timespec;
typedef struct Timeval Timeval; typedef struct Timeval Timeval;
typedef struct Sigaction Sigaction; typedef struct SigactionT SigactionT;
typedef struct Siginfo Siginfo; typedef struct Siginfo Siginfo;
typedef struct Itimerval Itimerval; typedef struct Itimerval Itimerval;
typedef struct EpollEvent EpollEvent; typedef struct EpollEvent EpollEvent;
typedef uint64 Usigset;
#pragma pack on #pragma pack on
@ -109,11 +108,11 @@ struct Timeval {
int64 tv_sec; int64 tv_sec;
int64 tv_usec; int64 tv_usec;
}; };
struct Sigaction { struct SigactionT {
void *sa_handler; void *sa_handler;
uint64 sa_flags; uint64 sa_flags;
void *sa_restorer; void *sa_restorer;
Usigset sa_mask; uint64 sa_mask;
}; };
struct Siginfo { struct Siginfo {
int32 si_signo; int32 si_signo;
@ -129,7 +128,7 @@ struct Itimerval {
struct EpollEvent { struct EpollEvent {
uint32 events; uint32 events;
byte Pad_cgo_0[4]; byte Pad_cgo_0[4];
uint64 data; byte data[8]; // unaligned uintptr
}; };
@ -144,7 +143,6 @@ enum {
SA_RESTORER = 0, SA_RESTORER = 0,
}; };
//typedef struct Usigset Usigset;
typedef struct Ptregs Ptregs; typedef struct Ptregs Ptregs;
typedef struct Vreg Vreg; typedef struct Vreg Vreg;
typedef struct SigaltstackT SigaltstackT; typedef struct SigaltstackT SigaltstackT;
@ -153,11 +151,6 @@ typedef struct Ucontext Ucontext;
#pragma pack on #pragma pack on
//struct Usigset {
// uint64 sig[1];
//};
//typedef Sigset Usigset;
struct Ptregs { struct Ptregs {
uint64 gpr[32]; uint64 gpr[32];
uint64 nip; uint64 nip;
@ -202,8 +195,8 @@ struct Ucontext {
uint64 uc_flags; uint64 uc_flags;
Ucontext *uc_link; Ucontext *uc_link;
SigaltstackT uc_stack; SigaltstackT uc_stack;
Usigset uc_sigmask; uint64 uc_sigmask;
Usigset __unused[15]; uint64 __unused[15];
Sigcontext uc_mcontext; Sigcontext uc_mcontext;
}; };