diff options
author | Michael Shalayeff <mickey@cvs.openbsd.org> | 1996-05-08 01:35:14 +0000 |
---|---|---|
committer | Michael Shalayeff <mickey@cvs.openbsd.org> | 1996-05-08 01:35:14 +0000 |
commit | d5d7fb619418a928bdb80c741aa5651d5eaf179a (patch) | |
tree | a75a8429953d5dbf87bb45d3ffa5a5d92e40f67f /sys/arch | |
parent | 43d1714bf2fb6fcc31ac7a9b3627992bdc768420 (diff) |
fix the panic on reboot.
Diffstat (limited to 'sys/arch')
-rw-r--r-- | sys/arch/atari/atari/machdep.c | 4 |
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(); |