diff options
author | Jan Kotas <jkotas@microsoft.com> | 2016-01-23 07:19:21 -0800 |
---|---|---|
committer | Jan Kotas <jkotas@microsoft.com> | 2016-01-23 07:19:21 -0800 |
commit | 5709b9a1547970093eb1e0ccfd340ddd9c5f4435 (patch) | |
tree | 1b56165f466157d278cb6bd083c463028acfc1e1 | |
parent | e348674f9fc0f7a652dce91305f1e1a6fcd3a795 (diff) | |
parent | 512bef6de1594dbdddfcd6b120da02fb1c1d7b40 (diff) | |
download | coreclr-5709b9a1547970093eb1e0ccfd340ddd9c5f4435.tar.gz coreclr-5709b9a1547970093eb1e0ccfd340ddd9c5f4435.tar.bz2 coreclr-5709b9a1547970093eb1e0ccfd340ddd9c5f4435.zip |
Merge pull request #2797 from krytarowski/netbsd-support-6
NetBSD: Define PAL_CS_NATIVE_DATA_SIZE for few NetBSD platforms
-rw-r--r-- | src/pal/inc/pal.h | 38 |
1 files changed, 27 insertions, 11 deletions
diff --git a/src/pal/inc/pal.h b/src/pal/inc/pal.h index d3dda40a5a..56963673db 100644 --- a/src/pal/inc/pal.h +++ b/src/pal/inc/pal.h @@ -3476,26 +3476,42 @@ PALIMPORT BOOL PALAPI PAL_VirtualUnwindOutOfProc(CONTEXT *context, #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 is defined as 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(__hppa__) +#define PAL_CS_NATIVE_DATA_SIZE 92 +#elif defined(__NetBSD__) && defined(__i386__) +#define PAL_CS_NATIVE_DATA_SIZE 56 +#elif defined(__NetBSD__) && defined(__mips__) +#define PAL_CS_NATIVE_DATA_SIZE 56 +#elif defined(__NetBSD__) && (defined(__sparc__) && !defined(__sparc64__)) +#define PAL_CS_NATIVE_DATA_SIZE 56 +#elif defined(__NetBSD__) && defined(__sparc64__) +#define PAL_CS_NATIVE_DATA_SIZE 92 +#elif defined(__sun__) +#define PAL_CS_NATIVE_DATA_SIZE 48 #else #warning #error PAL_CS_NATIVE_DATA_SIZE is not defined for this architecture |