kern_shutdown.c (19268) | kern_shutdown.c (19274) |
---|---|
1/*- 2 * Copyright (c) 1986, 1988, 1991, 1993 3 * The Regents of the University of California. All rights reserved. 4 * (c) UNIX System Laboratories, Inc. 5 * All or some portions of this file are derived from material licensed 6 * to the University of California by American Telephone and Telegraph 7 * Co. or Unix System Laboratories, Inc. and are reproduced herein with 8 * the permission of UNIX System Laboratories, Inc. --- 22 unchanged lines hidden (view full) --- 31 * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS 32 * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) 33 * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT 34 * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY 35 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF 36 * SUCH DAMAGE. 37 * 38 * @(#)kern_shutdown.c 8.3 (Berkeley) 1/21/94 | 1/*- 2 * Copyright (c) 1986, 1988, 1991, 1993 3 * The Regents of the University of California. All rights reserved. 4 * (c) UNIX System Laboratories, Inc. 5 * All or some portions of this file are derived from material licensed 6 * to the University of California by American Telephone and Telegraph 7 * Co. or Unix System Laboratories, Inc. and are reproduced herein with 8 * the permission of UNIX System Laboratories, Inc. --- 22 unchanged lines hidden (view full) --- 31 * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS 32 * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) 33 * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT 34 * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY 35 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF 36 * SUCH DAMAGE. 37 * 38 * @(#)kern_shutdown.c 8.3 (Berkeley) 1/21/94 |
39 * $Id: kern_shutdown.c,v 1.8 1996/09/14 04:31:01 bde Exp $ | 39 * $Id: kern_shutdown.c,v 1.9 1996/10/30 21:40:22 julian Exp $ |
40 */ 41 42#include "opt_ddb.h" 43 44#include <sys/param.h> 45#include <sys/systm.h> 46#include <sys/reboot.h> 47#include <sys/msgbuf.h> --- 176 unchanged lines hidden (view full) --- 224 (*ep->function)(howto, ep->arg); 225 ep = ep->next; 226 } 227 splhigh(); 228 if (howto & RB_HALT) { 229 printf("\n"); 230 printf("The operating system has halted.\n"); 231 printf("Please press any key to reboot.\n\n"); | 40 */ 41 42#include "opt_ddb.h" 43 44#include <sys/param.h> 45#include <sys/systm.h> 46#include <sys/reboot.h> 47#include <sys/msgbuf.h> --- 176 unchanged lines hidden (view full) --- 224 (*ep->function)(howto, ep->arg); 225 ep = ep->next; 226 } 227 splhigh(); 228 if (howto & RB_HALT) { 229 printf("\n"); 230 printf("The operating system has halted.\n"); 231 printf("Please press any key to reboot.\n\n"); |
232 while (cngetc() == -1); /* no console, halt means STOP HERE */ | 232 switch (cngetc()) { 233 case -1: /* No console, just die */ 234 cpu_halt(); 235 /* NOTREACHED */ 236 default: 237 break; 238 } |
233 } else { 234 if (howto & RB_DUMP) { 235 if (!cold) { 236 savectx(&dumppcb); 237 dumppcb.pcb_cr3 = rcr3(); 238 dumpsys(); 239 } 240 --- 198 unchanged lines hidden --- | 239 } else { 240 if (howto & RB_DUMP) { 241 if (!cold) { 242 savectx(&dumppcb); 243 dumppcb.pcb_cr3 = rcr3(); 244 dumpsys(); 245 } 246 --- 198 unchanged lines hidden --- |