Deleted Added
sdiff udiff text old ( 166074 ) new ( 183322 )
full compact
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 $");
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
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 ---