main.c (59167) | main.c (59535) |
---|---|
1/*- 2 * Copyright (c) 1998 Michael Smith <msmith@freebsd.org> 3 * All rights reserved. 4 * 5 * Redistribution and use in source and binary forms, with or without 6 * modification, are permitted provided that the following conditions 7 * are met: 8 * 1. Redistributions of source code must retain the above copyright --- 9 unchanged lines hidden (view full) --- 18 * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL 19 * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS 20 * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) 21 * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT 22 * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY 23 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF 24 * SUCH DAMAGE. 25 * | 1/*- 2 * Copyright (c) 1998 Michael Smith <msmith@freebsd.org> 3 * All rights reserved. 4 * 5 * Redistribution and use in source and binary forms, with or without 6 * modification, are permitted provided that the following conditions 7 * are met: 8 * 1. Redistributions of source code must retain the above copyright --- 9 unchanged lines hidden (view full) --- 18 * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL 19 * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS 20 * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) 21 * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT 22 * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY 23 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF 24 * SUCH DAMAGE. 25 * |
26 * $FreeBSD: head/sys/boot/pc98/loader/main.c 59167 2000-04-12 11:17:08Z kato $ | 26 * $FreeBSD: head/sys/boot/pc98/loader/main.c 59535 2000-04-23 09:33:31Z nyan $ |
27 */ 28 29/* 30 * MD bootstrap main() and assorted miscellaneous 31 * commands. 32 */ 33 34#include <stand.h> --- 194 unchanged lines hidden (view full) --- 229 env_setenv("loaddev", EV_VOLATILE, i386_fmtdev(&currdev), env_noset, env_nounset); 230} 231 232COMMAND_SET(reboot, "reboot", "reboot the system", command_reboot); 233 234static int 235command_reboot(int argc, char *argv[]) 236{ | 27 */ 28 29/* 30 * MD bootstrap main() and assorted miscellaneous 31 * commands. 32 */ 33 34#include <stand.h> --- 194 unchanged lines hidden (view full) --- 229 env_setenv("loaddev", EV_VOLATILE, i386_fmtdev(&currdev), env_noset, env_nounset); 230} 231 232COMMAND_SET(reboot, "reboot", "reboot the system", command_reboot); 233 234static int 235command_reboot(int argc, char *argv[]) 236{ |
237 int i; |
|
237 | 238 |
239 for (i = 0; devsw[i] != NULL; ++i) 240 if (devsw[i]->dv_cleanup != NULL) 241 (devsw[i]->dv_cleanup)(); 242 |
|
238 printf("Rebooting...\n"); 239 delay(1000000); 240 __exit(0); 241} 242 243/* provide this for panic, as it's not in the startup code */ 244void 245exit(int code) --- 44 unchanged lines hidden --- | 243 printf("Rebooting...\n"); 244 delay(1000000); 245 __exit(0); 246} 247 248/* provide this for panic, as it's not in the startup code */ 249void 250exit(int code) --- 44 unchanged lines hidden --- |