imgact_svr4.c (97748) | imgact_svr4.c (100384) |
---|---|
1/*- 2 * Copyright (c) 1998 Mark Newton 3 * Copyright (c) 1994-1996 S�ren Schmidt 4 * All rights reserved. 5 * 6 * Based heavily on /sys/kern/imgact_aout.c which is: 7 * Copyright (c) 1993, David Greenman 8 * --- 15 unchanged lines hidden (view full) --- 24 * IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT, 25 * INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT 26 * NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, 27 * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY 28 * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT 29 * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF 30 * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 31 * | 1/*- 2 * Copyright (c) 1998 Mark Newton 3 * Copyright (c) 1994-1996 S�ren Schmidt 4 * All rights reserved. 5 * 6 * Based heavily on /sys/kern/imgact_aout.c which is: 7 * Copyright (c) 1993, David Greenman 8 * --- 15 unchanged lines hidden (view full) --- 24 * IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT, 25 * INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT 26 * NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, 27 * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY 28 * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT 29 * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF 30 * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 31 * |
32 * $FreeBSD: head/sys/compat/svr4/imgact_svr4.c 97748 2002-06-02 20:05:59Z schweikh $ | 32 * $FreeBSD: head/sys/compat/svr4/imgact_svr4.c 100384 2002-07-20 02:56:12Z peter $ |
33 */ 34 35#include <sys/param.h> 36#include <sys/systm.h> 37#include <sys/exec.h> 38#include <sys/imgact.h> 39#include <sys/imgact_aout.h> 40#include <sys/kernel.h> --- 73 unchanged lines hidden (view full) --- 114 /* copy in arguments and/or environment from old process */ 115 error = exec_extract_strings(imgp); 116 if (error) 117 return (error); 118 119 /* 120 * Destroy old process VM and create a new one (with a new stack) 121 */ | 33 */ 34 35#include <sys/param.h> 36#include <sys/systm.h> 37#include <sys/exec.h> 38#include <sys/imgact.h> 39#include <sys/imgact_aout.h> 40#include <sys/kernel.h> --- 73 unchanged lines hidden (view full) --- 114 /* copy in arguments and/or environment from old process */ 115 error = exec_extract_strings(imgp); 116 if (error) 117 return (error); 118 119 /* 120 * Destroy old process VM and create a new one (with a new stack) 121 */ |
122 exec_new_vmspace(imgp); | 122 exec_new_vmspace(imgp, VM_MIN_ADDRESS, VM_MAXUSER_ADDRESS, USRSTACK); |
123 vmspace = imgp->proc->p_vmspace; 124 125 /* 126 * Check if file_offset page aligned,. 127 * Currently we cannot handle misalinged file offsets, 128 * and so we read in the entire image (what a waste). 129 */ 130 if (file_offset & PAGE_MASK) { --- 110 unchanged lines hidden --- | 123 vmspace = imgp->proc->p_vmspace; 124 125 /* 126 * Check if file_offset page aligned,. 127 * Currently we cannot handle misalinged file offsets, 128 * and so we read in the entire image (what a waste). 129 */ 130 if (file_offset & PAGE_MASK) { --- 110 unchanged lines hidden --- |