Deleted Added
full compact
imgact_linux.c (97748) imgact_linux.c (100384)
1/*-
2 * Copyright (c) 1994-1996 S�ren Schmidt
3 * All rights reserved.
4 *
5 * Based heavily on /sys/kern/imgact_aout.c which is:
6 * Copyright (c) 1993, David Greenman
7 *
8 * Redistribution and use in source and binary forms, with or without

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

23 * IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT,
24 * INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT
25 * NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
26 * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
27 * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
28 * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF
29 * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
30 *
1/*-
2 * Copyright (c) 1994-1996 S�ren Schmidt
3 * All rights reserved.
4 *
5 * Based heavily on /sys/kern/imgact_aout.c which is:
6 * Copyright (c) 1993, David Greenman
7 *
8 * Redistribution and use in source and binary forms, with or without

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

23 * IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT,
24 * INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT
25 * NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
26 * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
27 * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
28 * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF
29 * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
30 *
31 * $FreeBSD: head/sys/i386/linux/imgact_linux.c 97748 2002-06-02 20:05:59Z schweikh $
31 * $FreeBSD: head/sys/i386/linux/imgact_linux.c 100384 2002-07-20 02:56:12Z peter $
32 */
33
34#include <sys/param.h>
35#include <sys/systm.h>
36#include <sys/exec.h>
37#include <sys/imgact.h>
38#include <sys/imgact_aout.h>
39#include <sys/kernel.h>

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

113 /* copy in arguments and/or environment from old process */
114 error = exec_extract_strings(imgp);
115 if (error)
116 return (error);
117
118 /*
119 * Destroy old process VM and create a new one (with a new stack)
120 */
32 */
33
34#include <sys/param.h>
35#include <sys/systm.h>
36#include <sys/exec.h>
37#include <sys/imgact.h>
38#include <sys/imgact_aout.h>
39#include <sys/kernel.h>

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

113 /* copy in arguments and/or environment from old process */
114 error = exec_extract_strings(imgp);
115 if (error)
116 return (error);
117
118 /*
119 * Destroy old process VM and create a new one (with a new stack)
120 */
121 exec_new_vmspace(imgp);
121 exec_new_vmspace(imgp, VM_MIN_ADDRESS, VM_MAXUSER_ADDRESS, USRSTACK);
122 vmspace = imgp->proc->p_vmspace;
123
124 /*
125 * Check if file_offset page aligned,.
126 * Currently we cannot handle misalinged file offsets,
127 * and so we read in the entire image (what a waste).
128 */
129 if (file_offset & PAGE_MASK) {

--- 110 unchanged lines hidden ---
122 vmspace = imgp->proc->p_vmspace;
123
124 /*
125 * Check if file_offset page aligned,.
126 * Currently we cannot handle misalinged file offsets,
127 * and so we read in the entire image (what a waste).
128 */
129 if (file_offset & PAGE_MASK) {

--- 110 unchanged lines hidden ---