Deleted Added
full compact
ibcs2_xenix.c (160241) ibcs2_xenix.c (160798)
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

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

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
31#include <sys/cdefs.h>
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

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

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
31#include <sys/cdefs.h>
32__FBSDID("$FreeBSD: head/sys/i386/ibcs2/ibcs2_xenix.c 160241 2006-07-10 17:59:26Z jhb $");
32__FBSDID("$FreeBSD: head/sys/i386/ibcs2/ibcs2_xenix.c 160798 2006-07-28 19:05:28Z jhb $");
33
34#include <sys/param.h>
35#include <sys/systm.h>
36#include <sys/namei.h>
37#include <sys/sysproto.h>
38#include <sys/jail.h>
39#include <sys/kernel.h>
40#include <sys/malloc.h>

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

64 struct trapframe *tf = td->td_frame;
65 struct sysent *callp;
66 u_int code;
67 int error;
68
69 code = (tf->tf_eax & 0xff00) >> 8;
70 callp = &xenix_sysent[code];
71
33
34#include <sys/param.h>
35#include <sys/systm.h>
36#include <sys/namei.h>
37#include <sys/sysproto.h>
38#include <sys/jail.h>
39#include <sys/kernel.h>
40#include <sys/malloc.h>

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

64 struct trapframe *tf = td->td_frame;
65 struct sysent *callp;
66 u_int code;
67 int error;
68
69 code = (tf->tf_eax & 0xff00) >> 8;
70 callp = &xenix_sysent[code];
71
72 if (code < IBCS2_XENIX_MAXSYSCALL) {
73 if ((callp->sy_narg & SYF_MPSAFE) == 0)
74 mtx_lock(&Giant);
72 if (code < IBCS2_XENIX_MAXSYSCALL)
75 error = ((*callp->sy_call)(td, (void *)uap));
73 error = ((*callp->sy_call)(td, (void *)uap));
76 if ((callp->sy_narg & SYF_MPSAFE) == 0)
77 mtx_unlock(&Giant);
78 } else
74 else
79 error = ENOSYS;
80 return (error);
81}
82
83int
84xenix_rdchk(td, uap)
85 struct thread *td;
86 struct xenix_rdchk_args *uap;

--- 134 unchanged lines hidden ---
75 error = ENOSYS;
76 return (error);
77}
78
79int
80xenix_rdchk(td, uap)
81 struct thread *td;
82 struct xenix_rdchk_args *uap;

--- 134 unchanged lines hidden ---