From owner-freebsd-alpha Tue Nov 10 14:19:16 1998 Return-Path: Received: (from majordom@localhost) by hub.freebsd.org (8.8.8/8.8.8) id OAA25288 for freebsd-alpha-outgoing; Tue, 10 Nov 1998 14:19:16 -0800 (PST) (envelope-from owner-freebsd-alpha@FreeBSD.ORG) Received: from duke.cs.duke.edu (duke.cs.duke.edu [152.3.140.1]) by hub.freebsd.org (8.8.8/8.8.8) with ESMTP id OAA25273 for ; Tue, 10 Nov 1998 14:19:13 -0800 (PST) (envelope-from gallatin@cs.duke.edu) Received: from grasshopper.cs.duke.edu (grasshopper.cs.duke.edu [152.3.145.30]) by duke.cs.duke.edu (8.8.5/8.8.5) with ESMTP id RAA24471; Tue, 10 Nov 1998 17:18:20 -0500 (EST) Received: (from gallatin@localhost) by grasshopper.cs.duke.edu (8.9.1/8.9.1) id RAA11684; Tue, 10 Nov 1998 17:18:14 -0500 (EST) (envelope-from gallatin@cs.duke.edu) From: Andrew Gallatin MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Date: Tue, 10 Nov 1998 17:18:14 -0500 (EST) To: Mike Smith Cc: Mike Haertel , freebsd-alpha@FreeBSD.ORG Subject: Re: another small observation In-Reply-To: <199811071958.LAA05807@dingo.cdrom.com> References: <199811071822.KAA00792@ducky.net> <199811071958.LAA05807@dingo.cdrom.com> X-Mailer: VM 6.43 under 20.4 "Emerald" XEmacs Lucid Message-ID: <13896.47289.309597.453451@grasshopper.cs.duke.edu> Sender: owner-freebsd-alpha@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.org 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.. Index: sys/kern/kern_shutdown.c =================================================================== RCS file: /scratch/freebsd-cvs/src/sys/kern/kern_shutdown.c,v retrieving revision 1.41 diff -u -r1.41 kern_shutdown.c --- kern_shutdown.c 1998/10/30 05:41:15 1.41 +++ kern_shutdown.c 1998/11/10 21:41:42 @@ -278,8 +278,19 @@ if (howto & RB_HALT) { printf("\n"); printf("The operating system has halted.\n"); +#ifdef __alpha__ + printf("Please press 's' to drop into the SRM console, " + "or any other key to reboot\n\n"); +#endif +#ifdef __i386__ printf("Please press any key to reboot.\n\n"); +#endif switch (cngetc()) { +#ifdef __alpha__ + case 's' : + case 'S' : + printf("returning to the SRM console\n"); +#endif case -1: /* No console, just die */ cpu_halt(); /* NOTREACHED */ Cheers, Drew ------------------------------------------------------------------------------ Andrew Gallatin, Sr Systems Programmer http://www.cs.duke.edu/~gallatin Duke University Email: gallatin@cs.duke.edu Department of Computer Science Phone: (919) 660-6590 To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-alpha" in the body of the message