Deleted Added
full compact
i386_vm86.2 (108040) i386_vm86.2 (108087)
1.\" Copyright (c) 1998 Jonathan Lemon
2.\" All rights reserved.
3.\"
4.\" Redistribution and use in source and binary forms, with or without
5.\" modification, are permitted provided that the following conditions
6.\" are met:
7.\" 1. Redistributions of source code must retain the above copyright
8.\" notice, this list of conditions and the following disclaimer.

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

17.\" FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
18.\" DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
19.\" OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
20.\" HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
21.\" LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
22.\" OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
23.\" SUCH DAMAGE.
24.\"
1.\" Copyright (c) 1998 Jonathan Lemon
2.\" All rights reserved.
3.\"
4.\" Redistribution and use in source and binary forms, with or without
5.\" modification, are permitted provided that the following conditions
6.\" are met:
7.\" 1. Redistributions of source code must retain the above copyright
8.\" notice, this list of conditions and the following disclaimer.

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

17.\" FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
18.\" DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
19.\" OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
20.\" HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
21.\" LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
22.\" OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
23.\" SUCH DAMAGE.
24.\"
25.\" $FreeBSD: head/lib/libc/i386/sys/i386_vm86.2 108040 2002-12-18 13:33:04Z ru $
25.\" $FreeBSD: head/lib/libc/i386/sys/i386_vm86.2 108087 2002-12-19 09:40:28Z ru $
26.\"
27.Dd July 27, 1998
28.Os
29.Dt I386_VM86 2
30.Sh NAME
31.Nm i386_vm86
32.Nd control vm86-related functions
33.Sh LIBRARY

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

38.In machine/vm86.h
39.Ft int
40.Fn i386_vm86 "int function" "void *data"
41.Sh DESCRIPTION
42The
43.Fn i386_vm86
44system call
45is used to call various vm86 related functions.
26.\"
27.Dd July 27, 1998
28.Os
29.Dt I386_VM86 2
30.Sh NAME
31.Nm i386_vm86
32.Nd control vm86-related functions
33.Sh LIBRARY

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

38.In machine/vm86.h
39.Ft int
40.Fn i386_vm86 "int function" "void *data"
41.Sh DESCRIPTION
42The
43.Fn i386_vm86
44system call
45is used to call various vm86 related functions.
46The
46.Fa function
47.Fa function
48argument
47can be one of the following values:
48.Bl -tag -offset indent -width VM86_SET_VME
49.It Dv VM86_INIT
50This will initialize the kernel's vm86 parameter area for the
51process, and permit the process to make vm86 calls.
49can be one of the following values:
50.Bl -tag -offset indent -width VM86_SET_VME
51.It Dv VM86_INIT
52This will initialize the kernel's vm86 parameter area for the
53process, and permit the process to make vm86 calls.
54The
52.Fa data
55.Fa data
56argument
53points to the following structure:
54.Bd -literal
55struct vm86_init_args {
56 int debug;
57 int cpu_type;
58 u_char int_map[32];
59};
60.Ed
61.Pp
57points to the following structure:
58.Bd -literal
59struct vm86_init_args {
60 int debug;
61 int cpu_type;
62 u_char int_map[32];
63};
64.Ed
65.Pp
66The
62.Fa debug
67.Fa debug
68argument
63is used to turn on debugging code.
69is used to turn on debugging code.
70The
64.Fa cpu_type
71.Fa cpu_type
72argument
65controls the type of CPU being emulated, and is currently unimplemented.
73controls the type of CPU being emulated, and is currently unimplemented.
74The
66.Fa int_map
75.Fa int_map
76argument
67is a bitmap which determines whether vm86 interrupts should be handled
68in vm86 mode, or reflected back to the process. If the
69.Em Nth
70bit is set, the interrupt will be reflected to the process, otherwise
71it will be dispatched by the vm86 interrupt table.
72.\" .It Dv VM86_SET_VME
73.\" .It Dv VM86_GET_VME
74.\" .It Dv VM86_INTCALL

--- 23 unchanged lines hidden ---
77is a bitmap which determines whether vm86 interrupts should be handled
78in vm86 mode, or reflected back to the process. If the
79.Em Nth
80bit is set, the interrupt will be reflected to the process, otherwise
81it will be dispatched by the vm86 interrupt table.
82.\" .It Dv VM86_SET_VME
83.\" .It Dv VM86_GET_VME
84.\" .It Dv VM86_INTCALL

--- 23 unchanged lines hidden ---