Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 10 Nov 1998 14:23:33 -0800
From:      Mike Smith <mike@smith.net.au>
To:        Andrew Gallatin <gallatin@cs.duke.edu>
Cc:        freebsd-alpha@FreeBSD.ORG
Subject:   Re: another small observation 
Message-ID:  <199811102223.OAA00993@dingo.cdrom.com>
In-Reply-To: Your message of "Tue, 10 Nov 1998 17:18:14 EST." <13896.47289.309597.453451@grasshopper.cs.duke.edu> 

next in thread | previous in thread | raw e-mail | index | archive | help
> 
> Mike Smith writes:
>  > > On x86's this concept of "halt" makes sense, since PC BIOSes
>  > > typically do not have a halted state.  But on Alphas it's a
>  > > real misfeature.  The SRM console is a lot more useful than
>  > > a PC BIOS, in fact it's the nicest console I've seen, and it
>  > > would be good to be able to get back to it.
>  > 
>  > This is a consequence of my unifying the "halt" and "reboot" behaviour -
>  > the Alpha was doing it's own thing rather than the standard MI
>  > behaviour.
>  > 
>  > It would be relatively trivial to move the "what to do when halting"
>  > behaviour into the MD code; you're welcome to submit diffs, and I'd be 
>  > happy to talk you through what would need to be done.
> 
> I'm bothered by this behaviour as well.  
> 
> All you need to do to get the old behaviour back is to call
> cpu_halt().  Is the following patch acceptable?  I realize there are a
> lot of #ifdefs..  

No.  The Alpha should register an at_shutdown hook which checks for 
RB_HALT and calls the appropriate halt routine.  cpu_halt() should also 
die.

The goal is to move as much shutdown behaviour as possible onto the 
callout lists.  This keeps all the MD code in the MD modules, and means 
there's less of a rigid interface to have to conform to.


-- 
\\  Sometimes you're ahead,       \\  Mike Smith
\\  sometimes you're behind.      \\  mike@smith.net.au
\\  The race is long, and in the  \\  msmith@freebsd.org
\\  end it's only with yourself.  \\  msmith@cdrom.com



To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-alpha" in the body of the message



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?199811102223.OAA00993>