kern_shutdown.c (30994) | kern_shutdown.c (31275) |
---|---|
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.24 1997/09/05 08:54:55 peter Exp $ | 39 * $Id: kern_shutdown.c,v 1.25 1997/11/06 19:29:13 phk Exp $ |
40 */ 41 42#include "opt_ddb.h" 43#include "opt_panic.h" 44#include "opt_show_busybufs.h" 45 46#include <sys/param.h> 47#include <sys/systm.h> | 40 */ 41 42#include "opt_ddb.h" 43#include "opt_panic.h" 44#include "opt_show_busybufs.h" 45 46#include <sys/param.h> 47#include <sys/systm.h> |
48#include <sys/buf.h> |
|
48#include <sys/reboot.h> 49#include <sys/proc.h> | 49#include <sys/reboot.h> 50#include <sys/proc.h> |
50#include <sys/vnode.h> | |
51#include <sys/malloc.h> 52#include <sys/kernel.h> 53#include <sys/mount.h> 54#include <sys/sysctl.h> 55#include <sys/conf.h> 56#include <sys/sysproto.h> 57 58#include <machine/pcb.h> --- 54 unchanged lines hidden (view full) --- 113 114/* 115 * there are two shutdown lists. Some things need to be shut down 116 * Earlier than others. 117 */ 118static sle_p shutdown_list1; 119static sle_p shutdown_list2; 120 | 51#include <sys/malloc.h> 52#include <sys/kernel.h> 53#include <sys/mount.h> 54#include <sys/sysctl.h> 55#include <sys/conf.h> 56#include <sys/sysproto.h> 57 58#include <machine/pcb.h> --- 54 unchanged lines hidden (view full) --- 113 114/* 115 * there are two shutdown lists. Some things need to be shut down 116 * Earlier than others. 117 */ 118static sle_p shutdown_list1; 119static sle_p shutdown_list2; 120 |
121static void boot __P((int)) __dead2; 122static void dumpsys __P((void)); |
|
121 | 123 |
122static void dumpsys(void); 123 | |
124#ifndef _SYS_SYSPROTO_H_ 125struct reboot_args { 126 int opt; 127}; 128#endif 129/* ARGSUSED */ 130 131/* --- 31 unchanged lines hidden (view full) --- 163static int waittime = -1; 164static struct pcb dumppcb; 165 166/* 167 * Go through the rigmarole of shutting down.. 168 * this used to be in machdep.c but I'll be dammned if I could see 169 * anything machine dependant in it. 170 */ | 124#ifndef _SYS_SYSPROTO_H_ 125struct reboot_args { 126 int opt; 127}; 128#endif 129/* ARGSUSED */ 130 131/* --- 31 unchanged lines hidden (view full) --- 163static int waittime = -1; 164static struct pcb dumppcb; 165 166/* 167 * Go through the rigmarole of shutting down.. 168 * this used to be in machdep.c but I'll be dammned if I could see 169 * anything machine dependant in it. 170 */ |
171void | 171static void |
172boot(howto) 173 int howto; 174{ 175 sle_p ep; 176 177#ifdef SMP 178 int c, spins; 179 --- 313 unchanged lines hidden --- | 172boot(howto) 173 int howto; 174{ 175 sle_p ep; 176 177#ifdef SMP 178 int c, spins; 179 --- 313 unchanged lines hidden --- |