Import of pkgsrc-2016Q3

This commit is contained in:
2016-10-14 07:49:11 +02:00
committed by Lionel Sambuc
parent 9d819b6d54
commit 1242aa1e36
35952 changed files with 949749 additions and 377083 deletions

View File

@@ -0,0 +1,22 @@
$NetBSD: patch-js_src_asmjs_AsmJSSignalHandlers.cpp,v 1.1 2016/02/14 07:30:54 ryoon Exp $
Increase portability for non-x86 Darwin by not hardwiring
x86_THREAD_STATE.
--- js/src/asmjs/AsmJSSignalHandlers.cpp.orig 2015-05-04 00:43:23.000000000 +0000
+++ js/src/asmjs/AsmJSSignalHandlers.cpp
@@ -637,10 +637,11 @@ HandleMachException(JSRuntime* rt, const
mach_port_t rtThread = request.body.thread.name;
// Read out the JSRuntime thread's register state.
- x86_thread_state_t state;
- unsigned int count = x86_THREAD_STATE_COUNT;
+ moz_platform_thread_state_t state;
+ thread_state_flavor_t flavor = MOZ_PLATFORM_THREAD_STATE_FLAVOR;
+ mach_msg_type_number_t count = MOZ_PLATFORM_THREAD_STATE_COUNT;
kern_return_t kret;
- kret = thread_get_state(rtThread, x86_THREAD_STATE, (thread_state_t)&state, &count);
+ kret = thread_get_state(rtThread, flavor, (thread_state_t)&state, &count);
if (kret != KERN_SUCCESS)
return false;