need memory syscall
jdb at mordor.UUCP
jdb at mordor.UUCP
Mon May 7 22:27:35 AEST 1984
"phys" is certainly a great way to step on yourself. But then, the
one time that I used it, that was precisely what I intended to do.
I wanted a program which could reboot my V7 PDP-11/45 (and other
local PDP-11's) without tying up kernel I-space. (I was very
protective of the kernel in those days; I would be today, but on 4.2BSD
it seems hopeless.) My program just read a disc block, did an spl7(),
copied it to physical location zero, blew away memory management (and
everything else) with a "reset", and jumped to zero. BLAMMO -- reboot!
Aside from something as inherently machine-dependent as this reboot
program, I was very nervous about programs which referenced memory
directly (or through "/dev/mem"). There are just too many ways to
make mistakes, and UNIX is not very forgiving of accidentally trashed
memory. (Nor are other users when you cause the machine to crash.)
--
John Bruner (S-1 Project, Lawrence Livermore National Laboratory)
MILNET: jdb at mordor.ARPA [jdb at s1-c] (415) 422-0758
UUCP: ...!ucbvax!dual!mordor!jdb ...!decvax!decwrl!mordor!jdb
More information about the Comp.unix
mailing list