Deleted Added
full compact
imgact_aout.c (99487) imgact_aout.c (100384)
1/*
2 * Copyright (c) 1993, David Greenman
3 * All rights reserved.
4 *
5 * Redistribution and use in source and binary forms, with or without
6 * modification, are permitted provided that the following conditions
7 * are met:
8 * 1. Redistributions of source code must retain the above copyright

--- 9 unchanged lines hidden (view full) ---

18 * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
19 * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
20 * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
21 * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
22 * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
23 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
24 * SUCH DAMAGE.
25 *
1/*
2 * Copyright (c) 1993, David Greenman
3 * All rights reserved.
4 *
5 * Redistribution and use in source and binary forms, with or without
6 * modification, are permitted provided that the following conditions
7 * are met:
8 * 1. Redistributions of source code must retain the above copyright

--- 9 unchanged lines hidden (view full) ---

18 * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
19 * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
20 * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
21 * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
22 * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
23 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
24 * SUCH DAMAGE.
25 *
26 * $FreeBSD: head/sys/kern/imgact_aout.c 99487 2002-07-06 07:00:01Z jeff $
26 * $FreeBSD: head/sys/kern/imgact_aout.c 100384 2002-07-20 02:56:12Z peter $
27 */
28
29#include "opt_kstack_pages.h"
30
31#include <sys/param.h>
32#include <sys/exec.h>
33#include <sys/fcntl.h>
34#include <sys/imgact.h>

--- 138 unchanged lines hidden (view full) ---

173 /* copy in arguments and/or environment from old process */
174 error = exec_extract_strings(imgp);
175 if (error)
176 return (error);
177
178 /*
179 * Destroy old process VM and create a new one (with a new stack)
180 */
27 */
28
29#include "opt_kstack_pages.h"
30
31#include <sys/param.h>
32#include <sys/exec.h>
33#include <sys/fcntl.h>
34#include <sys/imgact.h>

--- 138 unchanged lines hidden (view full) ---

173 /* copy in arguments and/or environment from old process */
174 error = exec_extract_strings(imgp);
175 if (error)
176 return (error);
177
178 /*
179 * Destroy old process VM and create a new one (with a new stack)
180 */
181 exec_new_vmspace(imgp);
181 exec_new_vmspace(imgp, VM_MIN_ADDRESS, VM_MAXUSER_ADDRESS, USRSTACK);
182
183 /*
184 * The vm space can be changed by exec_new_vmspace
185 */
186 vmspace = imgp->proc->p_vmspace;
187
188 vp = imgp->vp;
189 object = imgp->object;

--- 100 unchanged lines hidden ---
182
183 /*
184 * The vm space can be changed by exec_new_vmspace
185 */
186 vmspace = imgp->proc->p_vmspace;
187
188 vp = imgp->vp;
189 object = imgp->object;

--- 100 unchanged lines hidden ---