ibcs2_xenix.c (59794) | ibcs2_xenix.c (78962) |
---|---|
1/*- 2 * Copyright (c) 1994 Sean Eric Fagan 3 * Copyright (c) 1994 S�ren Schmidt 4 * Copyright (c) 1995 Steven Wallace 5 * All rights reserved. 6 * 7 * Redistribution and use in source and binary forms, with or without 8 * modification, are permitted provided that the following conditions --- 13 unchanged lines hidden (view full) --- 22 * IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT, 23 * INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT 24 * NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, 25 * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY 26 * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT 27 * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF 28 * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 29 * | 1/*- 2 * Copyright (c) 1994 Sean Eric Fagan 3 * Copyright (c) 1994 S�ren Schmidt 4 * Copyright (c) 1995 Steven Wallace 5 * All rights reserved. 6 * 7 * Redistribution and use in source and binary forms, with or without 8 * modification, are permitted provided that the following conditions --- 13 unchanged lines hidden (view full) --- 22 * IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT, 23 * INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT 24 * NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, 25 * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY 26 * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT 27 * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF 28 * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 29 * |
30 * $FreeBSD: head/sys/i386/ibcs2/ibcs2_xenix.c 59794 2000-04-30 18:52:11Z phk $ | 30 * $FreeBSD: head/sys/i386/ibcs2/ibcs2_xenix.c 78962 2001-06-29 11:10:41Z jhb $ |
31 */ 32 33#include <sys/param.h> 34#include <sys/systm.h> 35#include <sys/namei.h> 36#include <sys/sysproto.h> 37#include <sys/kernel.h> 38#include <sys/filio.h> --- 11 unchanged lines hidden (view full) --- 50#include <i386/ibcs2/ibcs2_xenix_syscall.h> 51 52 53extern struct sysent xenix_sysent[]; 54 55int 56ibcs2_xenix(struct proc *p, struct ibcs2_xenix_args *uap) 57{ | 31 */ 32 33#include <sys/param.h> 34#include <sys/systm.h> 35#include <sys/namei.h> 36#include <sys/sysproto.h> 37#include <sys/kernel.h> 38#include <sys/filio.h> --- 11 unchanged lines hidden (view full) --- 50#include <i386/ibcs2/ibcs2_xenix_syscall.h> 51 52 53extern struct sysent xenix_sysent[]; 54 55int 56ibcs2_xenix(struct proc *p, struct ibcs2_xenix_args *uap) 57{ |
58 struct trapframe *tf = p->p_md.md_regs; | 58 struct trapframe *tf = p->p_frame; |
59 struct sysent *callp; 60 u_int code; 61 62 code = (tf->tf_eax & 0xff00) >> 8; 63 callp = &xenix_sysent[code]; 64 65 if(code < IBCS2_XENIX_MAXSYSCALL) 66 return((*callp->sy_call)(p, (void *)uap)); --- 159 unchanged lines hidden --- | 59 struct sysent *callp; 60 u_int code; 61 62 code = (tf->tf_eax & 0xff00) >> 8; 63 callp = &xenix_sysent[code]; 64 65 if(code < IBCS2_XENIX_MAXSYSCALL) 66 return((*callp->sy_call)(p, (void *)uap)); --- 159 unchanged lines hidden --- |