X-Git-Url: http://repo.macrolet.net/gitweb/?a=blobdiff_plain;f=src%2Fruntime%2Fvalidate.c;h=536e262c9b43c8b14e0d1f164893b6b1c680720a;hb=69d60b456b07a0256f08df0d02484f361ce5737c;hp=f4c8bfe1718f321898ad7fa8a8ad7656b3cf4b4d;hpb=5e1fcdac979db9a6aebe69531229355def8c0f90;p=sbcl.git diff --git a/src/runtime/validate.c b/src/runtime/validate.c index f4c8bfe..536e262 100644 --- a/src/runtime/validate.c +++ b/src/runtime/validate.c @@ -80,16 +80,16 @@ validate(void) } void -protect_control_stack_guard_page(pid_t t_id, int protect_p) { - struct thread *th = find_thread_by_pid(t_id); +protect_control_stack_guard_page(os_thread_t t_id, int protect_p) { + struct thread *th = find_thread_by_os_thread(t_id); 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(pid_t t_id, int protect_p) { - struct thread *th = find_thread_by_pid(t_id); +protect_control_stack_return_guard_page(os_thread_t t_id, int protect_p) { + struct thread *th = find_thread_by_os_thread(t_id); 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);