1 ;;;; detecting and handling exhaustion of fundamental system resources
4 ;;;; This software is part of the SBCL system. See the README file for
7 ;;;; This software is derived from the CMU CL system, which was
8 ;;;; written at Carnegie Mellon University and released into the
9 ;;;; public domain. The software is in the public domain and is
10 ;;;; provided with absolutely no warranty. See the COPYING and CREDITS
11 ;;;; files for more information.
13 (in-package "SB!KERNEL")
14 (define-alien-routine ("protect_control_stack_guard_page"
15 %protect-control-stack-guard-page)
17 (protect-p sb!alien:int)
18 (thread sb!alien:int))
19 (defun protect-control-stack-guard-page (n)
20 (%protect-control-stack-guard-page (if n 1 0) 0))