From cf1990dc7629de805e04d813bebc187e5fddd220 Mon Sep 17 00:00:00 2001
From: Raymond Toy <toy.raymond@gmail.com>
Date: Sun, 4 Oct 2015 12:42:34 -0700
Subject: [PATCH] Don't define a SIGNAL_STACK mapped region.  Use altstack,
 like on other platforms.

---
 src/lisp/x86-validate-darwin.h | 2 ++
 src/lisp/x86-validate-linux.h  | 2 ++
 2 files changed, 4 insertions(+)

diff --git a/src/lisp/x86-validate-darwin.h b/src/lisp/x86-validate-darwin.h
index 53166e844..712a0feb8 100644
--- a/src/lisp/x86-validate-darwin.h
+++ b/src/lisp/x86-validate-darwin.h
@@ -29,7 +29,9 @@
  */
 #define CONTROL_STACK_SIZE	(0x07fdf000)	/* 128MB - SIGSTKSZ - 1 page */
 
+#if 0
 #define SIGNAL_STACK_START	(0x47fe0000)    /* One page past the end of the control stack */
+#endif
 #define SIGNAL_STACK_SIZE	SIGSTKSZ
 
 #define DYNAMIC_0_SPACE_START	(SpaceStart_TargetDynamic)
diff --git a/src/lisp/x86-validate-linux.h b/src/lisp/x86-validate-linux.h
index 4a0e46cb3..258d87187 100644
--- a/src/lisp/x86-validate-linux.h
+++ b/src/lisp/x86-validate-linux.h
@@ -42,7 +42,9 @@
 #define CONTROL_STACK_START	0x38000000
 #define CONTROL_STACK_SIZE	(0x07fff000 - 8192)
 
+#if 0
 #define SIGNAL_STACK_START	CONTROL_STACK_END
+#endif
 #define SIGNAL_STACK_SIZE	SIGSTKSZ
 
 #define DYNAMIC_0_SPACE_START	(SpaceStart_TargetDynamic)
-- 
GitLab