diff options
author | Theo de Raadt <deraadt@cvs.openbsd.org> | 1995-12-27 22:26:37 +0000 |
---|---|---|
committer | Theo de Raadt <deraadt@cvs.openbsd.org> | 1995-12-27 22:26:37 +0000 |
commit | 1b9fb5d1f367934db39e880ded794cc73ada09f0 (patch) | |
tree | 29331b45de0bff5c9b041887aa345c26ed9ad40c /sys/arch/atari | |
parent | ef0751a00264284557874522612da95509e828dd (diff) |
from leo; use doshutdownhooks()
Diffstat (limited to 'sys/arch/atari')
-rw-r--r-- | sys/arch/atari/atari/machdep.c | 14 |
1 files changed, 11 insertions, 3 deletions
diff --git a/sys/arch/atari/atari/machdep.c b/sys/arch/atari/atari/machdep.c index 20298b2777d..31bc8d3a6ed 100644 --- a/sys/arch/atari/atari/machdep.c +++ b/sys/arch/atari/atari/machdep.c @@ -1,4 +1,4 @@ -/* $NetBSD: machdep.c,v 1.16 1995/10/07 06:25:28 mycroft Exp $ */ +/* $NetBSD: machdep.c,v 1.17 1995/12/25 14:09:13 leo Exp $ */ /* * Copyright (c) 1988 University of Utah. @@ -117,7 +117,7 @@ extern u_int lowram; /* * For the fpu emulation and the fpu driver */ -int fputype; +int fputype = 0; /* the following is used externally (sysctl_hw) */ char machine[] = "atari"; @@ -784,8 +784,15 @@ boot(howto) savectx(curproc->p_addr); boothowto = howto; - if((howto&RB_NOSYNC) == 0) + if((howto & RB_NOSYNC) == 0) bootsync(); + + /* + * Call shutdown hooks. Do this _before_ anything might be + * asked to the user in case nobody is there.... + */ + doshutdownhooks(); + splhigh(); /* extreme priority */ if(howto & RB_HALT) { printf("halted\n\n"); @@ -794,6 +801,7 @@ boot(howto) else { if(howto & RB_DUMP) dumpsys(); + doboot(); /*NOTREACHED*/ } |