mirror of
https://github.com/Stichting-MINIX-Research-Foundation/pkgsrc-ng.git
synced 2025-08-03 09:48:00 -04:00
27 lines
1.2 KiB
C++
27 lines
1.2 KiB
C++
$NetBSD: patch-mozilla_js_src_jit_AsmJSSignalHandlers.cpp,v 1.1 2013/11/12 20:50:51 ryoon Exp $
|
|
|
|
--- mozilla/js/src/jit/AsmJSSignalHandlers.cpp.orig 2013-10-23 22:09:02.000000000 +0000
|
|
+++ mozilla/js/src/jit/AsmJSSignalHandlers.cpp
|
|
@@ -59,10 +59,11 @@ using namespace mozilla;
|
|
#elif defined(__linux__) || defined(SOLARIS)
|
|
# if defined(__linux__)
|
|
# define XMM_sig(p,i) ((p)->uc_mcontext.fpregs->_xmm[i])
|
|
+# define EIP_sig(p) ((p)->uc_mcontext.gregs[REG_EIP])
|
|
# else
|
|
# define XMM_sig(p,i) ((p)->uc_mcontext.fpregs.fp_reg_set.fpchip_state.xmm[i])
|
|
+# define EIP_sig(p) ((p)->uc_mcontext.gregs[REG_PC])
|
|
# endif
|
|
-# define EIP_sig(p) ((p)->uc_mcontext.gregs[REG_EIP])
|
|
# define RIP_sig(p) ((p)->uc_mcontext.gregs[REG_RIP])
|
|
# define PC_sig(p) ((p)->uc_mcontext.arm_pc)
|
|
# define RAX_sig(p) ((p)->uc_mcontext.gregs[REG_RAX])
|
|
@@ -269,7 +270,7 @@ LookupHeapAccess(const AsmJSModule &modu
|
|
# if defined(JS_CPU_X64)
|
|
# if defined(__DragonFly__)
|
|
# include <machine/npx.h> // for union savefpu
|
|
-# elif defined(__FreeBSD__) || defined(__OpenBSD__) || defined(__FreeBSD_kernel__)
|
|
+# elif defined(__FreeBSD__) || defined(__OpenBSD__) || defined(__FreeBSD_kernel__) || defined(__NetBSD__)
|
|
# include <machine/fpu.h> // for struct savefpu/fxsave64
|
|
# endif
|
|
# endif
|