summaryrefslogtreecommitdiffstats
path: root/sys/compat
diff options
context:
space:
mode:
authorkib <kib@FreeBSD.org>2010-08-07 11:57:13 +0000
committerkib <kib@FreeBSD.org>2010-08-07 11:57:13 +0000
commit8e1e89f01bbc54ea8521df59192705d0c1393541 (patch)
tree1b2c02b8ea24fd18e92c7f40d0b0a4a343ef9569 /sys/compat
parent8043767b92a12bcc6e6e4232dc9f8691bc7d97c5 (diff)
downloadFreeBSD-src-8e1e89f01bbc54ea8521df59192705d0c1393541.zip
FreeBSD-src-8e1e89f01bbc54ea8521df59192705d0c1393541.tar.gz
Prefer struct sysentvec sv_psstrings to hardcoding FREEBSD32_PS_STRINGS
in the compat32 code. Use sv_usrstack instead of FREEBSD32_USRSTACK as well. MFC after: 1 week
Diffstat (limited to 'sys/compat')
-rw-r--r--sys/compat/freebsd32/freebsd32_misc.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/sys/compat/freebsd32/freebsd32_misc.c b/sys/compat/freebsd32/freebsd32_misc.c
index 153a2c7..579d81b 100644
--- a/sys/compat/freebsd32/freebsd32_misc.c
+++ b/sys/compat/freebsd32/freebsd32_misc.c
@@ -2541,7 +2541,8 @@ freebsd32_copyout_strings(struct image_params *imgp)
execpath_len = strlen(imgp->execpath) + 1;
else
execpath_len = 0;
- arginfo = (struct freebsd32_ps_strings *)FREEBSD32_PS_STRINGS;
+ arginfo = (struct freebsd32_ps_strings *)curproc->p_sysent->
+ sv_psstrings;
szsigcode = *(imgp->proc->p_sysent->sv_szsigcode);
destp = (caddr_t)arginfo - szsigcode - SPARE_USRSPACE -
roundup(execpath_len, sizeof(char *)) -
OpenPOWER on IntegriCloud