summaryrefslogtreecommitdiff
path: root/sys
diff options
context:
space:
mode:
authorMichael Shalayeff <mickey@cvs.openbsd.org>1996-05-08 01:35:14 +0000
committerMichael Shalayeff <mickey@cvs.openbsd.org>1996-05-08 01:35:14 +0000
commitd5d7fb619418a928bdb80c741aa5651d5eaf179a (patch)
treea75a8429953d5dbf87bb45d3ffa5a5d92e40f67f /sys
parent43d1714bf2fb6fcc31ac7a9b3627992bdc768420 (diff)
fix the panic on reboot.
Diffstat (limited to 'sys')
-rw-r--r--sys/arch/atari/atari/machdep.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/sys/arch/atari/atari/machdep.c b/sys/arch/atari/atari/machdep.c
index 375429a11a7..3b0d07e9d89 100644
--- a/sys/arch/atari/atari/machdep.c
+++ b/sys/arch/atari/atari/machdep.c
@@ -763,6 +763,10 @@ void
bootsync(void)
{
if (waittime < 0) {
+ extern struct proc proc0;
+ /* defeat against panic in boot */
+ if (curproc == NULL)
+ curproc = &proc0;
waittime = 0;
vfs_shutdown();