* mini-x86.h mini-amd64.h mini-exceptions.c: Move the bsd specific MAP_ANON
stuff to mini-exceptions.c where it is used.
svn path=/trunk/mono/; revision=65252
#define MONO_ARCH_SIGSEGV_ON_ALTSTACK
-/* FreeBSD and NetBSD need SA_STACK and MAP_ANON re-definitions */
-# if defined(__FreeBSD__) || defined(__NetBSD__)
-# ifndef SA_STACK
-# define SA_STACK SA_ONSTACK
-# endif
-# ifndef MAP_ANONYMOUS
-# define MAP_ANONYMOUS MAP_ANON
-# endif
-# endif /* BSDs */
-
#endif
#endif /* PLATFORM_WIN32 */
#include <sys/mman.h>
#endif
+/* FreeBSD and NetBSD need SA_STACK and MAP_ANON re-definitions */
+# if defined(__FreeBSD__) || defined(__NetBSD__)
+# ifndef SA_STACK
+# define SA_STACK SA_ONSTACK
+# endif
+# ifndef MAP_ANONYMOUS
+# define MAP_ANONYMOUS MAP_ANON
+# endif
+# endif /* BSDs */
+
#define IS_ON_SIGALTSTACK(jit_tls) ((jit_tls) && ((guint8*)&(jit_tls) > (guint8*)(jit_tls)->signal_stack) && ((guint8*)&(jit_tls) < ((guint8*)(jit_tls)->signal_stack + (jit_tls)->signal_stack_size)))
#ifndef MONO_ARCH_CONTEXT_DEF
#define MONO_ARCH_SIGSEGV_ON_ALTSTACK
#define MONO_ARCH_USE_SIGACTION
-/* FreeBSD and NetBSD need SA_STACK and MAP_ANON re-definitions */
-# if defined(__FreeBSD__) || defined(__NetBSD__)
-# ifndef SA_STACK
-# define SA_STACK SA_ONSTACK
-# endif
-# ifndef MAP_ANONYMOUS
-# define MAP_ANONYMOUS MAP_ANON
-# endif
-# endif /* BSDs */
-
#endif /* HAVE_WORKING_SIGALTSTACK */
#endif /* !PLATFORM_WIN32 */