Deleted Added
full compact
i386_set_ioperm.c (92986) i386_set_ioperm.c (111010)
1/*-
2 * Copyright (c) 1998 Jonathan Lemon
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 * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
21 * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
22 * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
23 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
24 * SUCH DAMAGE.
25 */
26
27#include <sys/cdefs.h>
1/*-
2 * Copyright (c) 1998 Jonathan Lemon
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 * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
21 * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
22 * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
23 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
24 * SUCH DAMAGE.
25 */
26
27#include <sys/cdefs.h>
28__FBSDID("$FreeBSD: head/lib/libc/i386/sys/i386_set_ioperm.c 92986 2002-03-22 21:53:29Z obrien $");
28__FBSDID("$FreeBSD: head/lib/libc/i386/sys/i386_set_ioperm.c 111010 2003-02-16 17:29:11Z nectar $");
29
30#include <machine/sysarch.h>
31
29
30#include <machine/sysarch.h>
31
32extern int sysarch(int op, char *parms);
33
32int
33i386_set_ioperm(unsigned int start, unsigned int length, int enable)
34{
35 struct i386_ioperm_args p;
36
37 p.start = start;
38 p.length = length;
39 p.enable = enable;
40
41 return (sysarch(I386_SET_IOPERM, (char *)&p));
42}
34int
35i386_set_ioperm(unsigned int start, unsigned int length, int enable)
36{
37 struct i386_ioperm_args p;
38
39 p.start = start;
40 p.length = length;
41 p.enable = enable;
42
43 return (sysarch(I386_SET_IOPERM, (char *)&p));
44}