X-Git-Url: http://repo.macrolet.net/gitweb/?a=blobdiff_plain;f=src%2Fruntime%2Fvalidate.c;h=8b62b471d27258e1e20bcb4baef706d3324e1a85;hb=94ea2b2082deaa0331dfb66fa6af6ca12dd8dc83;hp=536e262c9b43c8b14e0d1f164893b6b1c680720a;hpb=a6831e56ae6c27cab9b5efe157d087e261447d72;p=sbcl.git diff --git a/src/runtime/validate.c b/src/runtime/validate.c index 536e262..8b62b47 100644 --- a/src/runtime/validate.c +++ b/src/runtime/validate.c @@ -80,16 +80,14 @@ validate(void) } void -protect_control_stack_guard_page(os_thread_t t_id, int protect_p) { - struct thread *th = find_thread_by_os_thread(t_id); +protect_control_stack_guard_page(struct thread *th, int protect_p) { os_protect(CONTROL_STACK_GUARD_PAGE(th), os_vm_page_size,protect_p ? (OS_VM_PROT_READ|OS_VM_PROT_EXECUTE) : OS_VM_PROT_ALL); } void -protect_control_stack_return_guard_page(os_thread_t t_id, int protect_p) { - struct thread *th = find_thread_by_os_thread(t_id); +protect_control_stack_return_guard_page(struct thread *th, int protect_p) { os_protect(CONTROL_STACK_RETURN_GUARD_PAGE(th), os_vm_page_size,protect_p ? (OS_VM_PROT_READ|OS_VM_PROT_EXECUTE) : OS_VM_PROT_ALL);