phys(2) and accessing physical memory

G.R.Tomasevich grt at twitch.UUCP
Sat Dec 21 06:23:46 AEST 1985


> >addresses from user processes. This is a Uniplus   'feature', not a System
> >V 'feature'. Don't expect to see it in a port done by someone other than
> >Unisoft.

It would be nice for phys() to become permanent.  My suggestion about reading
from /dev/mem and calculating the address is trivial only if the physical
address space is commensurate with the number of address bits in the DMA
device, such as 18 bits for PDP-11/45 and DR11W or LSI-11/23 and DRV11B,
both of which we have done.  If you need to access something like a Unibus
map, for example, it would be a pain from user space.  I am not sure one
could even cook up a way to grab some Unibus map registers without some kind
of 'driver'.
-- 
	George Tomasevich, ihnp4!twitch!grt
	AT&T Bell Laboratories, Holmdel, NJ



More information about the Comp.unix.wizards mailing list