summaryrefslogtreecommitdiff
path: root/sys/arch
diff options
context:
space:
mode:
authorMichael Shalayeff <mickey@cvs.openbsd.org>1996-05-08 08:42:52 +0000
committerMichael Shalayeff <mickey@cvs.openbsd.org>1996-05-08 08:42:52 +0000
commit5033e40baed53612a03d64f466c99dc7afcf089d (patch)
tree7975178f1cc1f857ca567bf34a0c3a84561e6ab7 /sys/arch
parent6a26614a5a212a559c79f8707884d970e6c07c99 (diff)
fix panic at reboot.
Diffstat (limited to 'sys/arch')
-rw-r--r--sys/arch/pmax/pmax/machdep.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/sys/arch/pmax/pmax/machdep.c b/sys/arch/pmax/pmax/machdep.c
index d7ff865d080..a7c652305f7 100644
--- a/sys/arch/pmax/pmax/machdep.c
+++ b/sys/arch/pmax/pmax/machdep.c
@@ -1067,6 +1067,10 @@ boot(howto)
boothowto = howto;
if ((howto & RB_NOSYNC) == 0 && waittime < 0) {
+ extern struct proc proc0;
+ /* avoid panic at boot XXX */
+ if (curproc == NULL)
+ curproc = &proc0;
/*
* Synchronize the disks....
*/