diff options
Diffstat (limited to 'sys/kern/imgact_aout.c')
-rw-r--r-- | sys/kern/imgact_aout.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/sys/kern/imgact_aout.c b/sys/kern/imgact_aout.c index 803f765..e2334a9 100644 --- a/sys/kern/imgact_aout.c +++ b/sys/kern/imgact_aout.c @@ -53,6 +53,8 @@ __FBSDID("$FreeBSD$"); #include <vm/vm_object.h> #include <vm/vm_param.h> +#define uarea_pages 1 + static int exec_aout_imgact(struct image_params *imgp); static int aout_fixup(register_t **stack_base, struct image_params *imgp); @@ -284,9 +286,8 @@ aout_coredump(td, vp, limit) if (tempuser == NULL) return (ENOMEM); PROC_LOCK(p); - fill_kinfo_proc(p, &p->p_uarea->u_kproc); + fill_user(p, (struct user *)tempuser); PROC_UNLOCK(p); - bcopy(p->p_uarea, tempuser, sizeof(struct user)); bcopy(td->td_frame, tempuser + ctob(uarea_pages) + ((caddr_t)td->td_frame - (caddr_t)td->td_kstack), |