From 1e124ec538abd89755a07370b3e298c5d4e275bc Mon Sep 17 00:00:00 2001 From: dchagin Date: Wed, 26 Jan 2011 20:03:58 +0000 Subject: Add macro to test the sv_flags of any process. Change some places to test the flags instead of explicit comparing with address of known sysentvec structures. MFC after: 1 month --- sys/kern/sys_process.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'sys/kern/sys_process.c') diff --git a/sys/kern/sys_process.c b/sys/kern/sys_process.c index ee374c6..a7f280a 100644 --- a/sys/kern/sys_process.c +++ b/sys/kern/sys_process.c @@ -727,7 +727,7 @@ kern_ptrace(struct thread *td, int req, pid_t pid, void *addr, int data) * Set the wrap controls accordingly. */ if (SV_CURPROC_FLAG(SV_ILP32)) { - if (td2->td_proc->p_sysent->sv_flags & SV_ILP32) + if (SV_PROC_FLAG(td2->td_proc, SV_ILP32)) safe = 1; wrap32 = 1; } -- cgit v1.1