summaryrefslogtreecommitdiff
path: root/sys/arch
diff options
context:
space:
mode:
authorMichael Shalayeff <mickey@cvs.openbsd.org>1996-05-08 01:43:19 +0000
committerMichael Shalayeff <mickey@cvs.openbsd.org>1996-05-08 01:43:19 +0000
commit543878160d1b97cd7b0a394bee1271a74df965d7 (patch)
treeb5246d9396f5c63ba6f011f1b69490a098d819b8 /sys/arch
parentd5d7fb619418a928bdb80c741aa5651d5eaf179a (diff)
fix the panic at reboot.
Diffstat (limited to 'sys/arch')
-rw-r--r--sys/arch/hp300/hp300/machdep.c4
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();
/*