kern_shutdown.c (17658) | kern_shutdown.c (17677) |
---|---|
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: subr_prf.c,v 1.37 1996/05/09 18:58:06 gpalmer Exp $ | 39 * $Id: kern_shutdown.c,v 1.1 1996/08/19 02:19:21 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> --- 223 unchanged lines hidden (view full) --- 271 } 272 printf("--> Press a key on the console to reboot <--\n"); 273 cngetc(); 274 } 275 } 276die: 277 printf("Rebooting...\n"); 278 DELAY(1000000); /* wait 1 sec for printf's to complete and be read */ | 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> --- 223 unchanged lines hidden (view full) --- 271 } 272 printf("--> Press a key on the console to reboot <--\n"); 273 cngetc(); 274 } 275 } 276die: 277 printf("Rebooting...\n"); 278 DELAY(1000000); /* wait 1 sec for printf's to complete and be read */ |
279 /* cpu_boot(howto); */ /* doesn't do anything at the moment */ |
|
279 cpu_reset(); 280 for(;;) ; 281 /* NOTREACHED */ 282} 283 284/* 285 * Magic number for savecore 286 * --- 143 unchanged lines hidden --- | 280 cpu_reset(); 281 for(;;) ; 282 /* NOTREACHED */ 283} 284 285/* 286 * Magic number for savecore 287 * --- 143 unchanged lines hidden --- |