mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-10-27 20:25:44 +00:00
Bug 1532851 - Unbreak BSDs build on powerpc64 after bug 1462566. r=bbouvier
Define R32_sig, R01_sig based on: https://github.com/openbsd/src/blob/master/sys/arch/powerpc/include/signal.h https://github.com/netbsd/src/blob/trunk/sys/arch/powerpc/include/mcontext.h https://github.com/freebsd/freebsd/blob/master/sys/powerpc/include/ucontext.h
This commit is contained in:
parent
0e82824fec
commit
d2616d9647
@ -103,6 +103,11 @@ using mozilla::DebugOnly;
|
||||
# define EPC_sig(p) ((p)->sc_pc)
|
||||
# define RFP_sig(p) ((p)->sc_regs[30])
|
||||
# endif
|
||||
# if defined(__ppc64__) || defined(__PPC64__) || defined(__ppc64le__) || \
|
||||
defined(__PPC64LE__)
|
||||
# define R01_sig(p) ((p)->sc_frame.fixreg[1])
|
||||
# define R32_sig(p) ((p)->sc_frame.srr0)
|
||||
# endif
|
||||
#elif defined(__linux__) || defined(__sun)
|
||||
# if defined(__linux__)
|
||||
# define EIP_sig(p) ((p)->uc_mcontext.gregs[REG_EIP])
|
||||
@ -170,6 +175,11 @@ using mozilla::DebugOnly;
|
||||
# define EPC_sig(p) ((p)->uc_mcontext.__gregs[_REG_EPC])
|
||||
# define RFP_sig(p) ((p)->uc_mcontext.__gregs[_REG_S8])
|
||||
# endif
|
||||
# if defined(__ppc64__) || defined(__PPC64__) || defined(__ppc64le__) || \
|
||||
defined(__PPC64LE__)
|
||||
# define R01_sig(p) ((p)->uc_mcontext.__gregs[_REG_R1])
|
||||
# define R32_sig(p) ((p)->uc_mcontext.__gregs[_REG_PC])
|
||||
# endif
|
||||
#elif defined(__DragonFly__) || defined(__FreeBSD__) || \
|
||||
defined(__FreeBSD_kernel__)
|
||||
# define EIP_sig(p) ((p)->uc_mcontext.mc_eip)
|
||||
@ -199,6 +209,11 @@ using mozilla::DebugOnly;
|
||||
# define EPC_sig(p) ((p)->uc_mcontext.mc_pc)
|
||||
# define RFP_sig(p) ((p)->uc_mcontext.mc_regs[30])
|
||||
# endif
|
||||
# if defined(__FreeBSD__) && (defined(__ppc64__) || defined(__PPC64__) || \
|
||||
defined(__ppc64le__) || defined(__PPC64LE__))
|
||||
# define R01_sig(p) ((p)->uc_mcontext.mc_gpr[1])
|
||||
# define R32_sig(p) ((p)->uc_mcontext.mc_srr0)
|
||||
# endif
|
||||
#elif defined(XP_DARWIN)
|
||||
# define EIP_sig(p) ((p)->thread.uts.ts32.__eip)
|
||||
# define EBP_sig(p) ((p)->thread.uts.ts32.__ebp)
|
||||
|
Loading…
Reference in New Issue
Block a user