Changeset View
Changeset View
Standalone View
Standalone View
sys/compat/freebsd32/freebsd32_misc.c
Show First 20 Lines • Show All 3,519 Lines • ▼ Show 20 Lines | freebsd32_copyout_strings(struct image_params *imgp, uintptr_t *stack_base) | ||||
arginfo = (struct freebsd32_ps_strings *)PROC_PS_STRINGS(imgp->proc); | arginfo = (struct freebsd32_ps_strings *)PROC_PS_STRINGS(imgp->proc); | ||||
imgp->ps_strings = arginfo; | imgp->ps_strings = arginfo; | ||||
destp = (uintptr_t)arginfo; | destp = (uintptr_t)arginfo; | ||||
/* | /* | ||||
* Install sigcode. | * Install sigcode. | ||||
*/ | */ | ||||
if (sysent->sv_sigcode_base == 0) { | if (!PROC_HAS_SHP(imgp->proc)) { | ||||
szsigcode = *sysent->sv_szsigcode; | szsigcode = *sysent->sv_szsigcode; | ||||
destp -= szsigcode; | destp -= szsigcode; | ||||
destp = rounddown2(destp, sizeof(uint32_t)); | destp = rounddown2(destp, sizeof(uint32_t)); | ||||
error = copyout(sysent->sv_sigcode, (void *)destp, | error = copyout(sysent->sv_sigcode, (void *)destp, | ||||
szsigcode); | szsigcode); | ||||
if (error != 0) | if (error != 0) | ||||
return (error); | return (error); | ||||
} | } | ||||
▲ Show 20 Lines • Show All 550 Lines • Show Last 20 Lines |