diff options
author | dchagin <dchagin@FreeBSD.org> | 2011-01-26 20:03:58 +0000 |
---|---|---|
committer | dchagin <dchagin@FreeBSD.org> | 2011-01-26 20:03:58 +0000 |
commit | 1e124ec538abd89755a07370b3e298c5d4e275bc (patch) | |
tree | 11e55f54986e1fd2a80fd707f1d646272a4b9266 /sys/powerpc/aim/trap.c | |
parent | 0044f4e6eb992ee895bfd4d01fcd358a52ef2622 (diff) | |
download | FreeBSD-src-1e124ec538abd89755a07370b3e298c5d4e275bc.zip FreeBSD-src-1e124ec538abd89755a07370b3e298c5d4e275bc.tar.gz |
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
Diffstat (limited to 'sys/powerpc/aim/trap.c')
-rw-r--r-- | sys/powerpc/aim/trap.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/sys/powerpc/aim/trap.c b/sys/powerpc/aim/trap.c index 930810f..60c0f3b 100644 --- a/sys/powerpc/aim/trap.c +++ b/sys/powerpc/aim/trap.c @@ -389,7 +389,7 @@ cpu_fetch_syscall_args(struct thread *td, struct syscall_args *sa) * so as to maintain quad alignment * for the rest of the args. */ - if (p->p_sysent->sv_flags & SV_ILP32) { + if (SV_PROC_FLAG(p, SV_ILP32)) { params += sizeof(register_t); sa->code = *(register_t *) params; params += sizeof(register_t); @@ -410,7 +410,7 @@ cpu_fetch_syscall_args(struct thread *td, struct syscall_args *sa) sa->narg = sa->callp->sy_narg; - if (p->p_sysent->sv_flags & SV_ILP32) { + if (SV_PROC_FLAG(p, SV_ILP32)) { argsz = sizeof(uint32_t); for (i = 0; i < n; i++) @@ -430,7 +430,7 @@ cpu_fetch_syscall_args(struct thread *td, struct syscall_args *sa) error = 0; #ifdef __powerpc64__ - if (p->p_sysent->sv_flags & SV_ILP32 && sa->narg > n) { + if (SV_PROC_FLAG(p, SV_ILP32) && sa->narg > n) { /* Expand the size of arguments copied from the stack */ for (i = sa->narg; i >= n; i--) |