diff options
author | Michael Shalayeff <mickey@cvs.openbsd.org> | 1996-05-08 01:43:19 +0000 |
---|---|---|
committer | Michael Shalayeff <mickey@cvs.openbsd.org> | 1996-05-08 01:43:19 +0000 |
commit | 543878160d1b97cd7b0a394bee1271a74df965d7 (patch) | |
tree | b5246d9396f5c63ba6f011f1b69490a098d819b8 /sys/arch | |
parent | d5d7fb619418a928bdb80c741aa5651d5eaf179a (diff) |
fix the panic at reboot.
Diffstat (limited to 'sys/arch')
-rw-r--r-- | sys/arch/hp300/hp300/machdep.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/sys/arch/hp300/hp300/machdep.c b/sys/arch/hp300/hp300/machdep.c index 061afa4d7b0..216486eeafb 100644 --- a/sys/arch/hp300/hp300/machdep.c +++ b/sys/arch/hp300/hp300/machdep.c @@ -1141,6 +1141,10 @@ boot(howto) boothowto = howto; if ((howto & RB_NOSYNC) == 0 && waittime < 0) { + extern struct proc proc0; + /* make panic at reboot go away */ + if (curproc == NULL) + curproc = &proc0; waittime = 0; vfs_shutdown(); /* |