diff options
author | Michael Shalayeff <mickey@cvs.openbsd.org> | 1996-05-08 08:42:52 +0000 |
---|---|---|
committer | Michael Shalayeff <mickey@cvs.openbsd.org> | 1996-05-08 08:42:52 +0000 |
commit | 5033e40baed53612a03d64f466c99dc7afcf089d (patch) | |
tree | 7975178f1cc1f857ca567bf34a0c3a84561e6ab7 /sys/arch/pmax | |
parent | 6a26614a5a212a559c79f8707884d970e6c07c99 (diff) |
fix panic at reboot.
Diffstat (limited to 'sys/arch/pmax')
-rw-r--r-- | sys/arch/pmax/pmax/machdep.c | 4 |
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.... */ |