Accessing physical memory and phys()
G.R.Tomasevich
grt at twitch.UUCP
Thu Dec 19 05:41:05 AEST 1985
> Phys() is nonstandard. ...
> Mats Wichmann
One can always access device registers, physical memory, or whatever with
/dev/mem, a la Rob Warnock. Read the memory mapping registers and do the
same calculations that the processor does. I assume all flavors of UNIX
have some memory access system call. Be sure to plock(2) the process, so
some process user structure does not swap into your DMA buffer (crash, tinkle).
--
George Tomasevich, ihnp4!twitch!grt
AT&T Bell Laboratories, Holmdel, NJ
More information about the Comp.unix.wizards
mailing list