Relay-Version: version B 2.10 5/3/83; site utzoo.UUCP
Path: utzoo!mnetor!uunet!seismo!mcnc!ece-csc!ncrcae!ncr-sd!bigbang!crash!pnet01!billk
From: billk@pnet01.CTS.COM (Bill Kelly)
Newsgroups: comp.sys.amiga
Subject: Re: Hacking the WCS
Message-ID: <1372@crash.CTS.COM>
Date: Sun, 12-Jul-87 02:16:16 EDT
Article-I.D.: crash.1372
Posted: Sun Jul 12 02:16:16 1987
Date-Received: Mon, 13-Jul-87 00:56:27 EDT
Sender: news@crash.CTS.COM
Organization: People-Net [pnet01], El Cajon, CA
Lines: 22

>How do you change to supervisor mode? [so that you can execute ColdReset]

Well, you could probably call Exec_Lib SuperState. 
It says its purpose is to "enter supervisor mode with user stack."

If it doesn't work, (and since you want to reboot), you could re-vector the
68000's privilege violation trap to point to your own code and then do a
privilege violation.  (i.e. Write to the status register from user mode.) 
Then the 68000 will trap and jump to your routine (since you vectored the trap
to point to your routine).  You will then be in supervisor mode and should
then be able to call ColdReset.  I have not been able to find the LVO for Cold
Reset, myself.  If anyone knows the LVO for ColdReset, could you please let me
know?  (Or, if you know how GOMF resets the machine -- it does it really
quickly -- please clue me in.)
 
Thanks,
Bill
--
Bill Kelly      {akgua, hplabs!hp-sdd, sdcsvax}!crash!pnet01!billk
                (Don't use pnet01!billk; try crash!pnet01!billk -- Thanks!)

                "When your IQ reaches 28, sell."