Deleted Added
full compact
ibcs2_sysvec.c (166074) ibcs2_sysvec.c (183322)
1/*-
2 * Copyright (c) 1995 Steven Wallace
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

--- 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) 1995 Steven Wallace
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

--- 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_sysvec.c 166074 2007-01-17 15:05:52Z delphij $");
32__FBSDID("$FreeBSD: head/sys/i386/ibcs2/ibcs2_sysvec.c 183322 2008-09-24 10:14:37Z kib $");
33
34#include <sys/param.h>
35#include <sys/kernel.h>
36#include <sys/systm.h>
37#include <sys/exec.h>
38#include <sys/imgact.h>
39#include <sys/lock.h>
40#include <sys/module.h>

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

54
55extern int bsd_to_ibcs2_errno[];
56extern struct sysent ibcs2_sysent[IBCS2_SYS_MAXSYSCALL];
57extern int szsigcode;
58extern char sigcode[];
59static int ibcs2_fixup(register_t **, struct image_params *);
60
61struct sysentvec ibcs2_svr3_sysvec = {
33
34#include <sys/param.h>
35#include <sys/kernel.h>
36#include <sys/systm.h>
37#include <sys/exec.h>
38#include <sys/imgact.h>
39#include <sys/lock.h>
40#include <sys/module.h>

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

54
55extern int bsd_to_ibcs2_errno[];
56extern struct sysent ibcs2_sysent[IBCS2_SYS_MAXSYSCALL];
57extern int szsigcode;
58extern char sigcode[];
59static int ibcs2_fixup(register_t **, struct image_params *);
60
61struct sysentvec ibcs2_svr3_sysvec = {
62 sizeof (ibcs2_sysent) / sizeof (ibcs2_sysent[0]),
63 ibcs2_sysent,
64 0xFF,
65 IBCS2_SIGTBLSZ,
66 bsd_to_ibcs2_sig,
67 ELAST + 1,
68 bsd_to_ibcs2_errno,
69 NULL, /* trap-to-signal translation function */
70 ibcs2_fixup, /* fixup */
71 sendsig,
72 sigcode, /* use generic trampoline */
73 &szsigcode, /* use generic trampoline size */
74 NULL, /* prepsyscall */
75 "IBCS2 COFF",
76 NULL, /* we don't have a COFF coredump function */
77 NULL,
78 IBCS2_MINSIGSTKSZ,
79 PAGE_SIZE,
80 VM_MIN_ADDRESS,
81 VM_MAXUSER_ADDRESS,
82 USRSTACK,
83 PS_STRINGS,
84 VM_PROT_ALL,
85 exec_copyout_strings,
86 exec_setregs,
87 NULL
62 .sv_size = sizeof (ibcs2_sysent) / sizeof (ibcs2_sysent[0]),
63 .sv_table = ibcs2_sysent,
64 .sv_mask = 0xff,
65 .sv_sigsize = IBCS2_SIGTBLSZ,
66 .sv_sigtbl = bsd_to_ibcs2_sig,
67 .sv_errsize = ELAST + 1,
68 .sv_errtbl = bsd_to_ibcs2_errno,
69 .sv_transtrap = NULL,
70 .sv_fixup = ibcs2_fixup,
71 .sv_sendsig = sendsig,
72 .sv_sigcode = sigcode, /* use generic trampoline */
73 .sv_szsigcode = &szsigcode,
74 .sv_prepsyscall = NULL,
75 .sv_name = "IBCS2 COFF",
76 .sv_coredump = NULL, /* we don't have a COFF coredump function */
77 .sv_imgact_try = NULL,
78 .sv_minsigstksz = IBCS2_MINSIGSTKSZ,
79 .sv_pagesize = PAGE_SIZE,
80 .sv_minuser = VM_MIN_ADDRESS,
81 .sv_maxuser = VM_MAXUSER_ADDRESS,
82 .sv_usrstack = USRSTACK,
83 .sv_psstrings = PS_STRINGS,
84 .sv_stackprot = VM_PROT_ALL,
85 .sv_copyout_strings = exec_copyout_strings,
86 .sv_setregs = exec_setregs,
87 .sv_fixlimit = NULL,
88 .sv_maxssiz = NULL
88};
89
90static int
91ibcs2_fixup(register_t **stack_base, struct image_params *imgp)
92{
93
94 return (suword(--(*stack_base), imgp->args->argc));
95}

--- 37 unchanged lines hidden ---
89};
90
91static int
92ibcs2_fixup(register_t **stack_base, struct image_params *imgp)
93{
94
95 return (suword(--(*stack_base), imgp->args->argc));
96}

--- 37 unchanged lines hidden ---