pkgsrc-WIP-changes archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
coreclr-git: get thread id on NetBSD is _lwp_self()
Module Name: pkgsrc-wip
Committed By: Kamil Rytarowski <n54%gmx.com@localhost>
Pushed By: kamil
Date: Tue Apr 12 01:49:30 2016 +0200
Changeset: 38fc8a67be047aadfb16ab714bc614a371e10d5b
Modified Files:
coreclr-git/distinfo
coreclr-git/patches/patch-src_pal_src_arch_i386_hardwareexceptionhelper.S
Added Files:
coreclr-git/patches/patch-src_pal_src_include_pal_thread.hpp
Log Message:
coreclr-git: get thread id on NetBSD is _lwp_self()
To see a diff of this commit:
https://wip.pkgsrc.org/cgi-bin/gitweb.cgi?p=pkgsrc-wip.git;a=commitdiff;h=38fc8a67be047aadfb16ab714bc614a371e10d5b
Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.
diffstat:
coreclr-git/distinfo | 3 ++-
.../patch-src_pal_src_arch_i386_hardwareexceptionhelper.S | 2 +-
.../patches/patch-src_pal_src_include_pal_thread.hpp | 14 ++++++++++++++
3 files changed, 17 insertions(+), 2 deletions(-)
diffs:
diff --git a/coreclr-git/distinfo b/coreclr-git/distinfo
index 756dc7f..b315d43 100644
--- a/coreclr-git/distinfo
+++ b/coreclr-git/distinfo
@@ -2,11 +2,12 @@ $NetBSD$
SHA1 (patch-src_pal_inc_pal.h) = 7d3ef148af8b1b24067ba4cb5efc12581ebc6881
SHA1 (patch-src_pal_src_CMakeLists.txt) = 5266c31034534c7ffd4e770c8c5c4712d3743f71
-SHA1 (patch-src_pal_src_arch_i386_hardwareexceptionhelper.S) = c488647e71f0d0c9169451a6954b1ff1f933a22f
+SHA1 (patch-src_pal_src_arch_i386_hardwareexceptionhelper.S) = bd9e5e5c62138c40c17bdb8f6ac708ff73dd1fba
SHA1 (patch-src_pal_src_cruntime_printf.cpp) = 8a86c57e1fe3953d158e1860f04bd19d7df1fe08
SHA1 (patch-src_pal_src_cruntime_printfcpp.cpp) = 4d1ba5fea45402259c67428506f39d9c3128ecbd
SHA1 (patch-src_pal_src_cruntime_silent__printf.cpp) = 0922321ad05a90cc3b87b1e2663ff4d0b2e4717e
SHA1 (patch-src_pal_src_exception_seh.cpp) = 15ebe8a14270ca7e904e0dd27492584dda473c58
+SHA1 (patch-src_pal_src_include_pal_thread.hpp) = 7f914aaad27bea7935a66962e49df42a3b756374
SHA1 (patch-src_pal_src_safecrt_output.inl) = ceb1951e8a7e0839fa1c0f5d07fd6c4087afd5df
SHA1 (patch-src_pal_src_safecrt_safecrt__output__l.c) = 5a17a2525ab434336cfef369980562d1ecdcd953
SHA1 (patch-src_pal_tests_palsuite_exception__handling_pal__sxs_test1_exceptionsxs.cpp) = de21ff04dc42fc3a8c3df4b74f0adaeb19488ff0
diff --git a/coreclr-git/patches/patch-src_pal_src_arch_i386_hardwareexceptionhelper.S b/coreclr-git/patches/patch-src_pal_src_arch_i386_hardwareexceptionhelper.S
index 389df2f..cfa3ee3 100644
--- a/coreclr-git/patches/patch-src_pal_src_arch_i386_hardwareexceptionhelper.S
+++ b/coreclr-git/patches/patch-src_pal_src_arch_i386_hardwareexceptionhelper.S
@@ -1,6 +1,6 @@
$NetBSD$
---- src/pal/src/arch/i386/hardwareexceptionhelper.S.orig 2016-04-11 19:51:21.962403601 +0000
+--- src/pal/src/arch/i386/hardwareexceptionhelper.S.orig 2016-04-11 23:49:52.040000054 +0000
+++ src/pal/src/arch/i386/hardwareexceptionhelper.S
@@ -0,0 +1,46 @@
+// Licensed to the .NET Foundation under one or more agreements.
diff --git a/coreclr-git/patches/patch-src_pal_src_include_pal_thread.hpp b/coreclr-git/patches/patch-src_pal_src_include_pal_thread.hpp
new file mode 100644
index 0000000..c237f6c
--- /dev/null
+++ b/coreclr-git/patches/patch-src_pal_src_include_pal_thread.hpp
@@ -0,0 +1,14 @@
+$NetBSD$
+
+--- src/pal/src/include/pal/thread.hpp.orig 2016-04-08 23:29:23.000000000 +0000
++++ src/pal/src/include/pal/thread.hpp
+@@ -828,6 +828,9 @@ inline SIZE_T THREADSilentGetCurrentThre
+ pthread_threadid_np(pthread_self(), &tid);
+ return (SIZE_T)tid;
+ }
++#elif defined(__NetBSD__)
++#include <lwp.h>
++#define THREADSilentGetCurrentThreadId() (SIZE_T)_lwp_self()
+ #else
+ #define THREADSilentGetCurrentThreadId() (SIZE_T)pthread_self()
+ #endif
Home |
Main Index |
Thread Index |
Old Index