X-Git-Url: http://repo.macrolet.net/gitweb/?a=blobdiff_plain;f=src%2Fruntime%2Fvalidate.h;h=bc7ca14f2dc902e38318536922cc19519a885dcb;hb=095564c28a259002c7e34fd1d861f5bbd0a959b6;hp=0c2546e5afc2fe5e2b62825cb6061b76221a49fb;hpb=040e4e707e4f7bc9bda2ab78774fd9205c44ee1f;p=sbcl.git diff --git a/src/runtime/validate.h b/src/runtime/validate.h index 0c2546e..bc7ca14 100644 --- a/src/runtime/validate.h +++ b/src/runtime/validate.h @@ -19,17 +19,23 @@ #define STATIC_SPACE_SIZE ( STATIC_SPACE_END - STATIC_SPACE_START) #define THREAD_CONTROL_STACK_SIZE (2*1024*1024) /* eventually this'll be choosable per-thread */ +#ifdef LISP_FEATURE_LINKAGE_TABLE +#define LINKAGE_TABLE_SPACE_SIZE (LINKAGE_TABLE_SPACE_END - LINKAGE_TABLE_SPACE_START) +#endif + #if !defined(LANGUAGE_ASSEMBLY) #include #ifdef LISP_FEATURE_STACK_GROWS_DOWNWARD_NOT_UPWARD #define CONTROL_STACK_GUARD_PAGE(th) ((void *)(th->control_stack_start)) +#define CONTROL_STACK_RETURN_GUARD_PAGE(th) (CONTROL_STACK_GUARD_PAGE(th) + os_vm_page_size) #else -#define CONTROL_STACK_GUARD_PAGE(th) \ - (((void *)(th->control_stack_end)) - os_vm_page_size) +#define CONTROL_STACK_GUARD_PAGE(th) (((void *)(th->control_stack_end)) - os_vm_page_size) +#define CONTROL_STACK_RETURN_GUARD_PAGE(th) (CONTROL_STACK_GUARD_PAGE(th) - os_vm_page_size) #endif extern void validate(void); extern void protect_control_stack_guard_page(pid_t t_id, int protect_p); +extern void protect_control_stack_return_guard_page(pid_t t_id, int protect_p); #endif /* note for anyone trying to port an architecture's support files @@ -37,7 +43,7 @@ extern void protect_control_stack_guard_page(pid_t t_id, int protect_p); * * CMU CL had architecture-dependent header files included here to * define memory map data: - * #ifdef __i386__ + * #ifdef LISP_FEATURE_X86 * #include "x86-validate.h" * #endif * and so forth. In SBCL, the memory map data are defined at the Lisp