pkgsrc-WIP-changes archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

coreclr-git: Define PAL_CS_NATIVE_DATA_SIZE for few NetBSD platforms



Module Name:	pkgsrc-wip
Committed By:	Kamil Rytarowski <n54%gmx.com@localhost>
Pushed By:	kamil
Date:		Fri Jan 22 11:59:29 2016 +0100
Changeset:	22707882c03d6093aaba5b50ca84c137b012fba7

Modified Files:
	coreclr-git/distinfo
Added Files:
	coreclr-git/patches/patch-src_pal_inc_pal.h

Log Message:
coreclr-git: Define PAL_CS_NATIVE_DATA_SIZE for few NetBSD platforms

To see a diff of this commit:
https://wip.pkgsrc.org/cgi-bin/gitweb.cgi?p=pkgsrc-wip.git;a=commitdiff;h=22707882c03d6093aaba5b50ca84c137b012fba7

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

diffstat:
 coreclr-git/distinfo                        |  1 +
 coreclr-git/patches/patch-src_pal_inc_pal.h | 50 +++++++++++++++++++++++++++++
 2 files changed, 51 insertions(+)

diffs:
diff --git a/coreclr-git/distinfo b/coreclr-git/distinfo
index afc7651..d25b41c 100644
--- a/coreclr-git/distinfo
+++ b/coreclr-git/distinfo
@@ -1,2 +1,3 @@
 $NetBSD$
 
+SHA1 (patch-src_pal_inc_pal.h) = bbe7bf6d609415ecec4993bdc3e1ec5b6f94f99a
diff --git a/coreclr-git/patches/patch-src_pal_inc_pal.h b/coreclr-git/patches/patch-src_pal_inc_pal.h
new file mode 100644
index 0000000..4a0016f
--- /dev/null
+++ b/coreclr-git/patches/patch-src_pal_inc_pal.h
@@ -0,0 +1,50 @@
+$NetBSD$
+
+--- src/pal/inc/pal.h.orig	2016-01-21 12:20:13.000000000 +0000
++++ src/pal/inc/pal.h
+@@ -3476,26 +3476,34 @@ PALIMPORT BOOL PALAPI PAL_VirtualUnwindO
+ 
+ #ifdef PLATFORM_UNIX
+ 
+-#if defined(__FreeBSD__) && defined(_X86_)
+-#define PAL_CS_NATIVE_DATA_SIZE 12
+-#elif defined(__FreeBSD__) && defined(__x86_64__)
+-#define PAL_CS_NATIVE_DATA_SIZE 24
+-#elif defined(__sun__)
+-#define PAL_CS_NATIVE_DATA_SIZE 48
+-#elif defined(__hpux__) && (defined(__hppa__) || defined (__ia64__))
+-#define PAL_CS_NATIVE_DATA_SIZE 148
+-#elif defined(_AIX)
++/* PAL_CS_NATIVE_DATA_SIZE == sizeof(PAL_CRITICAL_SECTION_NATIVE_DATA) */
++
++#if defined(_AIX)
+ #define PAL_CS_NATIVE_DATA_SIZE 100
+ #elif defined(__APPLE__) && defined(__i386__)
+ #define PAL_CS_NATIVE_DATA_SIZE 76
+ #elif defined(__APPLE__) && defined(__x86_64__)
+ #define PAL_CS_NATIVE_DATA_SIZE 120
+-#elif defined(__LINUX__) && defined(__x86_64__)
+-#define PAL_CS_NATIVE_DATA_SIZE 96
++#elif defined(__FreeBSD__) && defined(_X86_)
++#define PAL_CS_NATIVE_DATA_SIZE 12
++#elif defined(__FreeBSD__) && defined(__x86_64__)
++#define PAL_CS_NATIVE_DATA_SIZE 24
++#elif defined(__hpux__) && (defined(__hppa__) || defined (__ia64__))
++#define PAL_CS_NATIVE_DATA_SIZE 148
+ #elif defined(__LINUX__) && defined(_ARM_)
+ #define PAL_CS_NATIVE_DATA_SIZE 80
+ #elif defined(__LINUX__) && defined(_ARM64_)
+ #define PAL_CS_NATIVE_DATA_SIZE 116
++#elif defined(__LINUX__) && defined(__x86_64__)
++#define PAL_CS_NATIVE_DATA_SIZE 96
++#elif defined(__NetBSD__) && defined(__amd64__)
++#define PAL_CS_NATIVE_DATA_SIZE 96
++#elif defined(__NetBSD__) && defined(__earm__)
++#define PAL_CS_NATIVE_DATA_SIZE 56
++#elif defined(__NetBSD__) && defined(__i386__)
++#define PAL_CS_NATIVE_DATA_SIZE 56
++#elif defined(__sun__)
++#define PAL_CS_NATIVE_DATA_SIZE 48
+ #else 
+ #warning 
+ #error  PAL_CS_NATIVE_DATA_SIZE is not defined for this architecture


Home | Main Index | Thread Index | Old Index