1*58031Storek.\" Copyright (c) 1992 The Regents of the University of California. 2*58031Storek.\" All rights reserved. 3*58031Storek.\" 4*58031Storek.\" This software was developed by the Computer Systems Engineering group 5*58031Storek.\" at Lawrence Berkeley Laboratory under DARPA contract BG 91-66 and 6*58031Storek.\" contributed to Berkeley. 7*58031Storek.\" 8*58031Storek.\" %sccs.include.redist.man% 9*58031Storek.\" 10*58031Storek.\" @(#)mem.4 5.1 (Berkeley) 02/17/93 11*58031Storek.\" 12*58031Storek.Dd 13*58031Storek.Dt MEM 4 sparc 14*58031Storek.Os 15*58031Storek.Sh NAME 16*58031Storek.Nm mem , 17*58031Storek.Nm kmem 18*58031Storek.Nd main memory 19*58031Storek.Sh DESCRIPTION 20*58031StorekThe file 21*58031Storek.Nm /dev/mem 22*58031Storekis an interface to the physical memory of the 23*58031Storekcomputer. 24*58031StorekByte offsets in this file are interpreted as physical memory addresses. 25*58031StorekReading and writing this file is equivalent to reading and writing 26*58031Storekmemory itself. 27*58031StorekAn error will be returned if an attempt is made to reference 28*58031Storekan offset outside of 29*58031Storek.Nm /dev/mem . 30*58031Storek.Pp 31*58031StorekKernel virtual memory is accessed via the file 32*58031Storek.Nm /dev/kmem 33*58031Storekin the same manner as 34*58031Storek.Nm /dev/mem . 35*58031StorekOnly kernel virtual addresses that are currently mapped to memory are allowed. 36*58031Storek.Sh SPARC 37*58031StorekOn the 38*58031Storek.Tn SPARC , 39*58031Storekphysical memory may be discontiguous; 40*58031Storekkernel virtual memory begins at 41*58031Storek.Li 0xf8000000 . 42*58031Storek.Sh FILES 43*58031Storek.Bl -tag -width /dev/kmem -compact 44*58031Storek.It Pa /dev/mem 45*58031Storek.It Pa /dev/kmem 46*58031Storek.El 47*58031Storek.Sh HISTORY 48*58031StorekThe files 49*58031Storek.Nm mem 50*58031Storekand 51*58031Storek.Nm kmem 52*58031Storekappeared in 53*58031Storek.At v6 . 54