Subject: Re: shutdown -r
To: John P. Wittkoski <jpw@netscape.com>
From: Paul Goyette <paul@whooppee.com>
List: port-mac68k
Date: 08/25/1997 16:46:17
On Mon, 25 Aug 1997, John P. Wittkoski wrote:

> Colin Wood wrote:
> 
> > Hmmm...yeah, I seem to remember someone else saying this at some point.
> > There must be some low memory global that we don't quite have the right
> > address for on the IIcx which we are touching.  The only problem with that
> > idea is that I thought a reboot pretty much wiped everything in memory,
> > but I guess maybe it doesn't.
> 
> How does MacOS determine a cold vs. warm startup?

Well, there's a longword called WarmStart (located at low-memory global
location 0x0CFC) that is looked at by (at least) the Slot Manager.  From
my admittedly low level of understanding of this code, WarmStart contains
a value of 0x574C5343 (or, 'WLSC' in ASCII) to signal a restart.  I
haven't a clue as to what the MacOS does differently between the Warm and
Cold starts.  But I'm pretty sure NetBSD/Mac68k doesn't do anything to set
this variable...

> Maybe on reboot MacOS looks for a particular number at a particular
> memory location to determine this. If this is the case, maybe we
> should zap ALL of low level memory right before we "reboot". This
> would cause MacOS to ignore all low level globals and re-create them,
> as it would assume a cold boot.

-----------------------------------------------------------------------------
| Paul Goyette       | PGP Public Key fingerprint:  | E-mail addresses:     |
| Network Consultant |     0E 40 D2 FC 2A 13 74 A0  |  paul@whooppee.com    |
| and kernel hacker  |     E4 69 D5 BE 65 E4 56 C6  |  paul_goyette@ins.com |
-----------------------------------------------------------------------------