diff options
author | Masao Uebayashi <uebayasi@cvs.openbsd.org> | 2014-07-11 14:36:45 +0000 |
---|---|---|
committer | Masao Uebayashi <uebayasi@cvs.openbsd.org> | 2014-07-11 14:36:45 +0000 |
commit | 4ba296d3255b0bbc1dc18e00b1f401ea15303dd0 (patch) | |
tree | 2b8937ecb011dbf54c36d3a1fe81a149afabc2e5 /sys/kern/subr_prf.c | |
parent | 5125e4d7b8523964928e75745e89c0824cb3be27 (diff) |
reboot(9): Add MI reboot entry function
Now, for kernel to "reboot" (reboot, halt, or shutdown), MD boot(9) is called
in some places. This change introduces a new MI function reboot(9) which is
simply a wrapper to call MD boot(9).
OK kettenis@ deraadt@
Diffstat (limited to 'sys/kern/subr_prf.c')
-rw-r--r-- | sys/kern/subr_prf.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/sys/kern/subr_prf.c b/sys/kern/subr_prf.c index 7336d268f60..ed134d1fe3a 100644 --- a/sys/kern/subr_prf.c +++ b/sys/kern/subr_prf.c @@ -1,4 +1,4 @@ -/* $OpenBSD: subr_prf.c,v 1.81 2013/12/12 21:00:09 guenther Exp $ */ +/* $OpenBSD: subr_prf.c,v 1.82 2014/07/11 14:36:44 uebayasi Exp $ */ /* $NetBSD: subr_prf.c,v 1.45 1997/10/24 18:14:25 chuck Exp $ */ /*- @@ -217,7 +217,8 @@ panic(const char *fmt, ...) else db_stack_dump(); #endif - boot(bootopt); + reboot(bootopt); + /* NOTREACHED */ } /* |