X-Git-Url: http://repo.macrolet.net/gitweb/?a=blobdiff_plain;f=src%2Fcode%2Fexhaust.lisp;h=7de2f007085623ee139b3a457b7c35ae4f4c4c55;hb=50eb070bdefc01733fa6b41427bbe32c7695fd71;hp=e3ce6ef82e853540c5273cf1fe2f0d454ce0895c;hpb=dc5e3163fe667e2629c7769aa8cf2e501eeeefa6;p=sbcl.git diff --git a/src/code/exhaust.lisp b/src/code/exhaust.lisp index e3ce6ef..7de2f00 100644 --- a/src/code/exhaust.lisp +++ b/src/code/exhaust.lisp @@ -11,6 +11,11 @@ ;;;; files for more information. (in-package "SB!KERNEL") -(define-alien-routine "protect_control_stack_guard_page" - sb!alien:int (protect-p sb!alien:int)) +(define-alien-routine ("protect_control_stack_guard_page" + %protect-control-stack-guard-page) + sb!alien:int (thread-id sb!alien:int) (protect-p sb!alien:int)) +(defun protect-control-stack-guard-page (n) + (%protect-control-stack-guard-page + (sb!thread:current-thread-id) (if n 1 0))) +