summaryrefslogtreecommitdiff
path: root/sys/man/3
diff options
context:
space:
mode:
authorcinap_lenrek <cinap_lenrek@centraldogma>2011-08-27 07:42:13 +0200
committercinap_lenrek <cinap_lenrek@centraldogma>2011-08-27 07:42:13 +0200
commitc8168fd3bcd752264dd1a52c44c816bc9b22bf9d (patch)
tree45fe89835a2d538ef6fb130438bc9dc6b13e91bb /sys/man/3
parent78e19b52bf09a480341b89914b9835b3c3d5e78c (diff)
arch(3): document msr
Diffstat (limited to 'sys/man/3')
-rw-r--r--sys/man/3/arch7
1 files changed, 6 insertions, 1 deletions
diff --git a/sys/man/3/arch b/sys/man/3/arch
index 7cd5e82fb..413ef9d08 100644
--- a/sys/man/3/arch
+++ b/sys/man/3/arch
@@ -12,6 +12,7 @@ arch \- architecture-specific information and control
.B /dev/iol
.B /dev/iow
.B /dev/irqalloc
+.B /dev/msr
.SH DESCRIPTION
This device presents textual information about PC hardware and allows
user-level control of the I/O ports on x86-class and DEC Alpha machines.
@@ -116,11 +117,15 @@ Reads and writes to
.IR iob ,
.IR iow ,
and
-.I iol
+.IR iol
cause 8-bit wide, 16-bit wide, and 32-bit wide requests to
I/O ports.
The port accessed is determined by the byte offset of the
file descriptor.
+.PP
+Reads and writes to
+.I msr
+go to the P4/P6/Core/Core2/AMD64 MSRs.
.SH EXAMPLE
The following code reads from an x86 byte I/O port.
.IP