Deleted Added
full compact
kern_shutdown.c (18113) kern_shutdown.c (18277)
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.5 1996/09/06 23:08:40 phk Exp $
39 * $Id: kern_shutdown.c,v 1.6 1996/09/07 19:13:09 sos 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>

--- 106 unchanged lines hidden (view full) ---

154static int waittime = -1;
155static struct pcb dumppcb;
156
157/*
158 * Go through the rigmarole of shutting down..
159 * this used to be in machdep.c but I'll be dammned if I could see
160 * anything machine dependant in it.
161 */
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>

--- 106 unchanged lines hidden (view full) ---

154static int waittime = -1;
155static struct pcb dumppcb;
156
157/*
158 * Go through the rigmarole of shutting down..
159 * this used to be in machdep.c but I'll be dammned if I could see
160 * anything machine dependant in it.
161 */
162__dead void
162void
163boot(howto)
164 int howto;
165{
166 sle_p ep;
167
168 ep = shutdown_list1;
169 while (ep) {
170 shutdown_list1 = ep->next;

--- 159 unchanged lines hidden (view full) ---

330 }
331}
332
333/*
334 * Panic is called on unresolvable fatal errors. It prints "panic: mesg",
335 * and then reboots. If we are called twice, then we avoid trying to sync
336 * the disks as this often leads to recursive panics.
337 */
163boot(howto)
164 int howto;
165{
166 sle_p ep;
167
168 ep = shutdown_list1;
169 while (ep) {
170 shutdown_list1 = ep->next;

--- 159 unchanged lines hidden (view full) ---

330 }
331}
332
333/*
334 * Panic is called on unresolvable fatal errors. It prints "panic: mesg",
335 * and then reboots. If we are called twice, then we avoid trying to sync
336 * the disks as this often leads to recursive panics.
337 */
338#ifdef __GNUC__
339__dead /* panic() does not return */
340#endif
341void
342panic(const char *fmt, ...)
343{
344 int bootopt;
345 va_list ap;
346
347 bootopt = RB_AUTOBOOT | RB_DUMP;
348 if (panicstr)

--- 92 unchanged lines hidden ---
338void
339panic(const char *fmt, ...)
340{
341 int bootopt;
342 va_list ap;
343
344 bootopt = RB_AUTOBOOT | RB_DUMP;
345 if (panicstr)

--- 92 unchanged lines hidden ---