summaryrefslogtreecommitdiff
path: root/lib/libarch
diff options
context:
space:
mode:
authorJason McIntyre <jmc@cvs.openbsd.org>2003-02-25 08:26:39 +0000
committerJason McIntyre <jmc@cvs.openbsd.org>2003-02-25 08:26:39 +0000
commit4b5c15322a076129905bf6753139b0b8d4e6f324 (patch)
treea8a4b2ca068d2b15f290b05ad48274c64248cc03 /lib/libarch
parent1789d28925a1de801286214ec0b73d7f78006412 (diff)
typos;
intro(2): help deraadt@
Diffstat (limited to 'lib/libarch')
-rw-r--r--lib/libarch/alpha/inb.26
-rw-r--r--lib/libarch/i386/i386_get_ldt.217
-rw-r--r--lib/libarch/i386/i386_iopl.27
-rw-r--r--lib/libarch/i386/i386_vm86.217
4 files changed, 28 insertions, 19 deletions
diff --git a/lib/libarch/alpha/inb.2 b/lib/libarch/alpha/inb.2
index 0de8c512cbb..d6b9ae52c18 100644
--- a/lib/libarch/alpha/inb.2
+++ b/lib/libarch/alpha/inb.2
@@ -1,4 +1,4 @@
-.\" $OpenBSD: inb.2,v 1.1 2002/07/12 22:30:25 deraadt Exp $
+.\" $OpenBSD: inb.2,v 1.2 2003/02/25 08:26:38 jmc Exp $
.\"
.\" Copyright (c) 2002 Matthieu Herrb
.\" All rights reserved.
@@ -94,7 +94,7 @@ The
functions write data to the specified I/O port.
.Pp
.Fn ioperm
-enables the access to to the specified port numbers if
+enables access to the specified port numbers if
.Fa on
is
.Dv TRUE
@@ -119,7 +119,7 @@ functions read data from device memory previously mapped by
.Pp
The
.Fn write*
-functions write datz to the device memory previously mapped by
+functions write data to the device memory previously mapped by
.Fn map_memory .
.\" .Sh EXAMPLES
.\" TBW
diff --git a/lib/libarch/i386/i386_get_ldt.2 b/lib/libarch/i386/i386_get_ldt.2
index 10cb98439ed..25b880d9ef0 100644
--- a/lib/libarch/i386/i386_get_ldt.2
+++ b/lib/libarch/i386/i386_get_ldt.2
@@ -55,17 +55,17 @@ LDT.
will set a list of i386 descriptors for the current process in its
LDT.
Both routines accept a starting selector number
-.Fa start_sel
-, an array of memory that
+.Fa start_sel ,
+an array of memory that
will contain the descriptors to be set or returned
-.Fa descs
-, and the number of entries to set or return
+.Fa descs ,
+and the number of entries to set or return
.Fa num_sels .
.Pp
The argument
.Fa descs
-can be either segment_descriptor or gate_descriptor and are defined in
-.Fd <i386/segments.h> .
+can be either segment_descriptor or gate_descriptor, as defined in
+.Ao Pa i386/segments.h Ac .
These structures are defined by the architecture
as disjoint bit-fields, so care must be taken in constructing them.
.Sh RETURN VALUES
@@ -94,6 +94,9 @@ The caller attempted to use a descriptor that would
circumvent protection or cause a failure.
.El
.Sh REFERENCES
-i386 Microprocessor Programmer's Reference Manual, Intel
+.Rs
+.%A Intel
+.%T i386 Microprocessor Programmer's Reference Manual
+.Re
.Sh WARNING
You can really hose your process using this.
diff --git a/lib/libarch/i386/i386_iopl.2 b/lib/libarch/i386/i386_iopl.2
index e48755ebb09..a4a746f1319 100644
--- a/lib/libarch/i386/i386_iopl.2
+++ b/lib/libarch/i386/i386_iopl.2
@@ -1,4 +1,4 @@
-.\" $OpenBSD: i386_iopl.2,v 1.9 2000/04/15 11:46:01 aaron Exp $
+.\" $OpenBSD: i386_iopl.2,v 1.10 2003/02/25 08:26:38 jmc Exp $
.\" $NetBSD: i386_iopl.2,v 1.3 1996/02/27 22:57:25 jtc Exp $
.\"
.\" Copyright (c) 1996 The NetBSD Foundation, Inc.
@@ -70,7 +70,10 @@ The caller was not the superuser.
.Xr i386_get_ioperm 2 ,
.Xr i386_set_ioperm 2
.Sh REFERENCES
-i386 Microprocessor Programmer's Reference Manual, Intel
+.Rs
+.%A Intel
+.%T i386 Microprocessor Programmer's Reference Manual
+.Re
.Sh WARNING
You can really hose your machine if you enable user-level I/O and
write to hardware ports without care.
diff --git a/lib/libarch/i386/i386_vm86.2 b/lib/libarch/i386/i386_vm86.2
index 2bf07c5a635..4347d3e2922 100644
--- a/lib/libarch/i386/i386_vm86.2
+++ b/lib/libarch/i386/i386_vm86.2
@@ -1,4 +1,4 @@
-.\" $OpenBSD: i386_vm86.2,v 1.7 2001/08/06 10:42:25 mpech Exp $
+.\" $OpenBSD: i386_vm86.2,v 1.8 2003/02/25 08:26:38 jmc Exp $
.\" $NetBSD: i386_vm86.2,v 1.1 1996/02/21 00:21:52 jtk Exp $
.\"
.\" Copyright (c) 1996 The NetBSD Foundation, Inc.
@@ -67,20 +67,20 @@ and
.Ar vmcp->int21_byuser
for fast virtual interrupt handling.
If the
-.Ar n th
+.Ar n Ns Li th
bit is clear in the first of
these arrays, then the kernel may directly emulate the real-mode x86 INT
.Ar n
instruction handling.
If the
-.Ar n
-th bit is set, then the process is
+.Ar n Ns Li th
+bit is set, then the process is
delivered a signal when an INT instruction is executed.
.Pp
Since MS-DOS puts many DOS functions onto interrupt 21, it is handled
specially: the
-.Ar k
-th bit in the
+.Ar k Ns Li th
+bit in the
.Ar vmcp->int21_byuser
array is checked when INT
.Ar 21
@@ -105,4 +105,7 @@ The state at
was not readable to the user process.
.El
.Sh REFERENCES
-i386 Microprocessor Programmer's Reference Manual, Intel
+.Rs
+.%A Intel
+.%T i386 Microprocessor Programmer's Reference Manual
+.Re