diff options
author | Miod Vallat <miod@cvs.openbsd.org> | 2001-10-05 00:16:58 +0000 |
---|---|---|
committer | Miod Vallat <miod@cvs.openbsd.org> | 2001-10-05 00:16:58 +0000 |
commit | 5260fe996d79bfd7c069512612ec9db4252839dd (patch) | |
tree | 66723ff24d509d117cf6111e48b645ce59d83857 /share/man | |
parent | 68f97cc9cc8dbea1e8714031869691d0e167a563 (diff) |
mem(4) for alpha and sparc64.
Diffstat (limited to 'share/man')
-rw-r--r-- | share/man/man4/man4.alpha/Makefile | 5 | ||||
-rw-r--r-- | share/man/man4/man4.alpha/mem.4 | 85 | ||||
-rw-r--r-- | share/man/man4/man4.sparc64/Makefile | 6 | ||||
-rw-r--r-- | share/man/man4/man4.sparc64/mem.4 | 85 |
4 files changed, 176 insertions, 5 deletions
diff --git a/share/man/man4/man4.alpha/Makefile b/share/man/man4/man4.alpha/Makefile index ebaf3fef34b..2d42ca19fe0 100644 --- a/share/man/man4/man4.alpha/Makefile +++ b/share/man/man4/man4.alpha/Makefile @@ -1,6 +1,7 @@ -# $OpenBSD: Makefile,v 1.8 2001/06/20 16:27:27 mpech Exp $ +# $OpenBSD: Makefile,v 1.9 2001/10/05 00:16:55 miod Exp $ -MAN= com.4 cy.4 esp.4 intro.4 le.4 lpt.4 pms.4 scc.4 wd.4 +MAN= com.4 cy.4 esp.4 intro.4 le.4 lpt.4 mem.4 pms.4 scc.4 wd.4 +MLINKS= mem.4 kmem.4 MANSUBDIR=alpha .include <bsd.prog.mk> diff --git a/share/man/man4/man4.alpha/mem.4 b/share/man/man4/man4.alpha/mem.4 new file mode 100644 index 00000000000..2f6d218aeff --- /dev/null +++ b/share/man/man4/man4.alpha/mem.4 @@ -0,0 +1,85 @@ +.\" $OpenBSD: mem.4,v 1.1 2001/10/05 00:16:55 miod Exp $ +.\" Copyright (c) 1992, 1993 +.\" The Regents of the University of California. All rights reserved. +.\" +.\" This software was developed by the Computer Systems Engineering group +.\" at Lawrence Berkeley Laboratory under DARPA contract BG 91-66 and +.\" contributed to Berkeley. +.\" +.\" Redistribution and use in source and binary forms, with or without +.\" modification, are permitted provided that the following conditions +.\" are met: +.\" 1. Redistributions of source code must retain the above copyright +.\" notice, this list of conditions and the following disclaimer. +.\" 2. Redistributions in binary form must reproduce the above copyright +.\" notice, this list of conditions and the following disclaimer in the +.\" documentation and/or other materials provided with the distribution. +.\" 3. All advertising materials mentioning features or use of this software +.\" must display the following acknowledgement: +.\" This product includes software developed by the University of +.\" California, Berkeley and its contributors. +.\" 4. Neither the name of the University nor the names of its contributors +.\" may be used to endorse or promote products derived from this software +.\" without specific prior written permission. +.\" +.\" THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND +.\" ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE +.\" IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE +.\" ARE DISCLAIMED. IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE +.\" FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL +.\" DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS +.\" OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) +.\" HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT +.\" LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY +.\" OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF +.\" SUCH DAMAGE. +.\" +.\" from: @(#)mem.4 8.1 (Berkeley) 6/5/93 +.\" +.Dd October 5, 2001 +.Dt MEM 4 alpha +.Os +.Sh NAME +.Nm mem , +.Nm kmem +.Nd main memory +.Sh DESCRIPTION +The file +.Nm /dev/mem +is an interface to the physical memory of the +computer. +Byte offsets in this file are interpreted as physical memory addresses. +Reading and writing this file is equivalent to reading and writing +memory itself. +An error will be returned if an attempt is made to reference +an offset outside of +.Nm /dev/mem . +.Pp +Kernel virtual memory is accessed via the file +.Nm /dev/kmem +in the same manner as +.Nm /dev/mem . +Only kernel virtual addresses that are currently mapped to memory are allowed. +.Sh ALPHA +On the +.Tn alpha , +physical memory may be discontiguous; +kernel virtual memory begins at +.Li 0xfffffc0000230000 . +.Pp +Writeability of these devices is controlled by the system +.Xr securelevel 7 . +.Sh FILES +.Bl -tag -width /dev/kmem -compact +.It Pa /dev/mem +.It Pa /dev/kmem +.El +.Sh SEE ALSO +.Xr securelevel 7 +.Sh HISTORY +The files +.Nm mem +and +.Nm kmem +appeared in +.At v6 . diff --git a/share/man/man4/man4.sparc64/Makefile b/share/man/man4/man4.sparc64/Makefile index 0afdbd56d3f..ad47a5e951a 100644 --- a/share/man/man4/man4.sparc64/Makefile +++ b/share/man/man4/man4.sparc64/Makefile @@ -1,7 +1,7 @@ -# $OpenBSD: Makefile,v 1.2 2001/10/04 22:03:59 miod Exp $ - -MAN= autoconf.4 intro.4 +# $OpenBSD: Makefile,v 1.3 2001/10/05 00:16:57 miod Exp $ +MAN= autoconf.4 intro.4 mem.4 +MLINKS= mem.4 kmem.4 MANSUBDIR=sparc64 .include <bsd.prog.mk> diff --git a/share/man/man4/man4.sparc64/mem.4 b/share/man/man4/man4.sparc64/mem.4 new file mode 100644 index 00000000000..b7f154102b6 --- /dev/null +++ b/share/man/man4/man4.sparc64/mem.4 @@ -0,0 +1,85 @@ +.\" $OpenBSD: mem.4,v 1.1 2001/10/05 00:16:57 miod Exp $ +.\" Copyright (c) 1992, 1993 +.\" The Regents of the University of California. All rights reserved. +.\" +.\" This software was developed by the Computer Systems Engineering group +.\" at Lawrence Berkeley Laboratory under DARPA contract BG 91-66 and +.\" contributed to Berkeley. +.\" +.\" Redistribution and use in source and binary forms, with or without +.\" modification, are permitted provided that the following conditions +.\" are met: +.\" 1. Redistributions of source code must retain the above copyright +.\" notice, this list of conditions and the following disclaimer. +.\" 2. Redistributions in binary form must reproduce the above copyright +.\" notice, this list of conditions and the following disclaimer in the +.\" documentation and/or other materials provided with the distribution. +.\" 3. All advertising materials mentioning features or use of this software +.\" must display the following acknowledgement: +.\" This product includes software developed by the University of +.\" California, Berkeley and its contributors. +.\" 4. Neither the name of the University nor the names of its contributors +.\" may be used to endorse or promote products derived from this software +.\" without specific prior written permission. +.\" +.\" THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND +.\" ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE +.\" IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE +.\" ARE DISCLAIMED. IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE +.\" FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL +.\" DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS +.\" OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) +.\" HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT +.\" LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY +.\" OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF +.\" SUCH DAMAGE. +.\" +.\" from: @(#)mem.4 8.1 (Berkeley) 6/5/93 +.\" +.Dd October 5, 2001 +.Dt MEM 4 sparc64 +.Os +.Sh NAME +.Nm mem , +.Nm kmem +.Nd main memory +.Sh DESCRIPTION +The file +.Nm /dev/mem +is an interface to the physical memory of the +computer. +Byte offsets in this file are interpreted as physical memory addresses. +Reading and writing this file is equivalent to reading and writing +memory itself. +An error will be returned if an attempt is made to reference +an offset outside of +.Nm /dev/mem . +.Pp +Kernel virtual memory is accessed via the file +.Nm /dev/kmem +in the same manner as +.Nm /dev/mem . +Only kernel virtual addresses that are currently mapped to memory are allowed. +.Sh SPARC64 +On the +sparc64, +physical memory may be discontiguous; +kernel virtual memory begins at +.Li 0x001000000 . +.Pp +Writeability of these devices is controlled by the system +.Xr securelevel 7 . +.Sh FILES +.Bl -tag -width /dev/kmem -compact +.It Pa /dev/mem +.It Pa /dev/kmem +.El +.Sh SEE ALSO +.Xr securelevel 7 +.Sh HISTORY +The files +.Nm mem +and +.Nm kmem +appeared in +.At v6 . |