зеркало из https://github.com/mozilla/gecko-dev.git
Bug 1379430 - Unbreak BSDs build on ARM* after bug 1370696. r=bbouvier
Define R11_sig, R13_sig, R14_sig based on: https://github.com/openbsd/src/blob/master/sys/arch/arm/include/signal.h https://github.com/netbsd/src/blob/trunk/sys/arch/arm/include/mcontext.h https://github.com/freebsd/freebsd/blob/master/sys/arm/include/ucontext.h Define RLR_sig and R31_sig based on: https://github.com/openbsd/src/blob/master/sys/arch/arm64/include/signal.h https://github.com/netbsd/src/blob/trunk/sys/arch/aarch64/include/mcontext.h https://github.com/freebsd/freebsd/blob/master/sys/arm64/include/ucontext.h MozReview-Commit-ID: 4IyQyZMbEK6 --HG-- extra : rebase_source : c4d58aa1e9d152dc28f63021f6b3f2b274dd9a99
This commit is contained in:
Родитель
8311a354e2
Коммит
47b549f365
|
@ -108,17 +108,20 @@ class AutoSetHandlingSegFault
|
|||
# define R10_sig(p) ((p)->sc_r10)
|
||||
# define R11_sig(p) ((p)->sc_r11)
|
||||
# define R12_sig(p) ((p)->sc_r12)
|
||||
# define R13_sig(p) ((p)->sc_r13)
|
||||
# define R14_sig(p) ((p)->sc_r14)
|
||||
# if defined(__arm__)
|
||||
# define R13_sig(p) ((p)->sc_usr_sp)
|
||||
# define R14_sig(p) ((p)->sc_usr_lr)
|
||||
# define R15_sig(p) ((p)->sc_pc)
|
||||
# else
|
||||
# define R13_sig(p) ((p)->sc_r13)
|
||||
# define R14_sig(p) ((p)->sc_r14)
|
||||
# define R15_sig(p) ((p)->sc_r15)
|
||||
# endif
|
||||
# if defined(__aarch64__)
|
||||
# define EPC_sig(p) ((p)->sc_elr)
|
||||
# define RFP_sig(p) ((p)->sc_x[29])
|
||||
# define RLR_sig(p) ((p)->sc_x[30])
|
||||
# define RLR_sig(p) ((p)->sc_lr)
|
||||
# define R31_sig(p) ((p)->sc_sp)
|
||||
# endif
|
||||
# if defined(__mips__)
|
||||
# define EPC_sig(p) ((p)->sc_pc)
|
||||
|
@ -196,7 +199,7 @@ class AutoSetHandlingSegFault
|
|||
# define EPC_sig(p) ((p)->uc_mcontext.__gregs[_REG_PC])
|
||||
# define RFP_sig(p) ((p)->uc_mcontext.__gregs[_REG_X29])
|
||||
# define RLR_sig(p) ((p)->uc_mcontext.__gregs[_REG_X30])
|
||||
# define RSP_sig(p) ((p)->uc_mcontext.__gregs[_REG_X31])
|
||||
# define R31_sig(p) ((p)->uc_mcontext.__gregs[_REG_SP])
|
||||
# endif
|
||||
# if defined(__mips__)
|
||||
# define EPC_sig(p) ((p)->uc_mcontext.__gregs[_REG_EPC])
|
||||
|
@ -223,19 +226,23 @@ class AutoSetHandlingSegFault
|
|||
# define R8_sig(p) ((p)->uc_mcontext.mc_r8)
|
||||
# define R9_sig(p) ((p)->uc_mcontext.mc_r9)
|
||||
# define R10_sig(p) ((p)->uc_mcontext.mc_r10)
|
||||
# define R11_sig(p) ((p)->uc_mcontext.mc_r11)
|
||||
# define R12_sig(p) ((p)->uc_mcontext.mc_r12)
|
||||
# define R13_sig(p) ((p)->uc_mcontext.mc_r13)
|
||||
# define R14_sig(p) ((p)->uc_mcontext.mc_r14)
|
||||
# if defined(__FreeBSD__) && defined(__arm__)
|
||||
# define R11_sig(p) ((p)->uc_mcontext.__gregs[_REG_R11])
|
||||
# define R13_sig(p) ((p)->uc_mcontext.__gregs[_REG_R13])
|
||||
# define R14_sig(p) ((p)->uc_mcontext.__gregs[_REG_R14])
|
||||
# define R15_sig(p) ((p)->uc_mcontext.__gregs[_REG_R15])
|
||||
# else
|
||||
# define R11_sig(p) ((p)->uc_mcontext.mc_r11)
|
||||
# define R13_sig(p) ((p)->uc_mcontext.mc_r13)
|
||||
# define R14_sig(p) ((p)->uc_mcontext.mc_r14)
|
||||
# define R15_sig(p) ((p)->uc_mcontext.mc_r15)
|
||||
# endif
|
||||
# if defined(__FreeBSD__) && defined(__aarch64__)
|
||||
# define EPC_sig(p) ((p)->uc_mcontext.mc_gpregs.gp_elr)
|
||||
# define RFP_sig(p) ((p)->uc_mcontext.mc_gpregs.gp_x[29])
|
||||
# define RLR_sig(p) ((p)->uc_mcontext.mc_gpregs.gp_x[30])
|
||||
# define RLR_sig(p) ((p)->uc_mcontext.mc_gpregs.gp_lr)
|
||||
# define R31_sig(p) ((p)->uc_mcontext.mc_gpregs.gp_sp)
|
||||
# endif
|
||||
# if defined(__FreeBSD__) && defined(__mips__)
|
||||
# define EPC_sig(p) ((p)->uc_mcontext.mc_pc)
|
||||
|
|
Загрузка…
Ссылка в новой задаче