0.7.8.12:
[sbcl.git] / src / runtime / validate.h
index 5196d60..2a963a0 100644 (file)
 #define READ_ONLY_SPACE_SIZE (READ_ONLY_SPACE_END - READ_ONLY_SPACE_START)
 #define    STATIC_SPACE_SIZE (   STATIC_SPACE_END -    STATIC_SPACE_START)
 
+#ifdef LISP_FEATURE_STACK_GROWS_DOWNWARD_NOT_UPWARD 
+#define CONTROL_STACK_GUARD_PAGE (CONTROL_STACK_START)
+#else
+#define CONTROL_STACK_GUARD_PAGE (CONTROL_STACK_END - os_vm_page_size)
+#endif
+
 #if !defined(LANGUAGE_ASSEMBLY)
 extern void validate(void);
+extern void protect_control_stack_guard_page(int protect_p);
 #endif
 
 /* note for anyone trying to port an architecture's support files
@@ -32,8 +39,9 @@ extern void validate(void);
  *   #include "x86-validate.h"
  *   #endif
  * and so forth. In SBCL, the memory map data are defined at the Lisp
- * level and stuffed into the sbcl.h file created by GENESIS, so
- * there's no longer a need for an architecture-dependent header file
- * of memory map data. */
+ * level (compiler/target/parms.lisp) and stuffed into the sbcl.h file
+ * created by GENESIS, so there's no longer a need for an
+ * architecture-dependent header file of memory map data. 
+ */
 
 #endif