xref: /original-bsd/share/man/man4/man4.hp300/mem.4 (revision 58db4230)
Copyright (c) 1990 Regents of the University of California.
All rights reserved. The Berkeley software License Agreement
specifies the terms and conditions for redistribution.

@(#)mem.4 5.1 (Berkeley) 06/29/90

MEM 4 ""
C 7
NAME
mem, kmem - main memory
DESCRIPTION
.lg Mem is a special file that is an image of the main memory of the computer. It may be used, for example, to examine (and even to patch) the system.

Byte addresses in mem are interpreted as physical memory addresses. References to non-existent locations cause errors to be returned. On the HP300, the last byte of physical memory is always 0xFFFFFFFF. Hence, on an HP300 with 8Mb of memory, physical memory would start at 0xFF800000.

The file kmem is the same as mem except that kernel virtual memory rather than physical memory is accessed. Only kernel virtual addresses that are mapped to memory are allowed. On the HP300, kernel virtual memory runs from 0 to about 0x2400000.

FILES
/dev/mem

/dev/kmem