linux_sysvec.c (106332) | linux_sysvec.c (109623) |
---|---|
1/*- 2 * Copyright (c) 1994-1996 S�ren Schmidt 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 --- 11 unchanged lines hidden (view full) --- 20 * IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT, 21 * INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT 22 * NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, 23 * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY 24 * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT 25 * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF 26 * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 27 * | 1/*- 2 * Copyright (c) 1994-1996 S�ren Schmidt 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 --- 11 unchanged lines hidden (view full) --- 20 * IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT, 21 * INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT 22 * NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, 23 * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY 24 * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT 25 * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF 26 * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 27 * |
28 * $FreeBSD: head/sys/i386/linux/linux_sysvec.c 106332 2002-11-02 07:41:04Z marcel $ | 28 * $FreeBSD: head/sys/i386/linux/linux_sysvec.c 109623 2003-01-21 08:56:16Z alfred $ |
29 */ 30 31/* XXX we use functions that might not exist. */ 32#include "opt_compat.h" 33 34#ifndef COMPAT_43 35#error "Unable to compile Linux-emulator due to missing COMPAT_43 option!" 36#endif --- 689 unchanged lines hidden (view full) --- 726 struct vmspace *vm = p->p_vmspace; 727 char *tempuser; 728 int error; 729 730 if (ctob((uarea_pages + kstack_pages) + 731 vm->vm_dsize + vm->vm_ssize) >= limit) 732 return (EFAULT); 733 tempuser = malloc(ctob(uarea_pages + kstack_pages), M_TEMP, | 29 */ 30 31/* XXX we use functions that might not exist. */ 32#include "opt_compat.h" 33 34#ifndef COMPAT_43 35#error "Unable to compile Linux-emulator due to missing COMPAT_43 option!" 36#endif --- 689 unchanged lines hidden (view full) --- 726 struct vmspace *vm = p->p_vmspace; 727 char *tempuser; 728 int error; 729 730 if (ctob((uarea_pages + kstack_pages) + 731 vm->vm_dsize + vm->vm_ssize) >= limit) 732 return (EFAULT); 733 tempuser = malloc(ctob(uarea_pages + kstack_pages), M_TEMP, |
734 M_WAITOK | M_ZERO); | 734 M_ZERO); |
735 if (tempuser == NULL) 736 return (ENOMEM); 737 PROC_LOCK(p); 738 fill_kinfo_proc(p, &p->p_uarea->u_kproc); 739 PROC_UNLOCK(p); 740 bcopy(p->p_uarea, tempuser, sizeof(struct user)); 741 bcopy(td->td_frame, 742 tempuser + ctob(uarea_pages) + --- 199 unchanged lines hidden --- | 735 if (tempuser == NULL) 736 return (ENOMEM); 737 PROC_LOCK(p); 738 fill_kinfo_proc(p, &p->p_uarea->u_kproc); 739 PROC_UNLOCK(p); 740 bcopy(p->p_uarea, tempuser, sizeof(struct user)); 741 bcopy(td->td_frame, 742 tempuser + ctob(uarea_pages) + --- 199 unchanged lines hidden --- |