summaryrefslogtreecommitdiff
path: root/sys/arch
diff options
context:
space:
mode:
authorMichael Shalayeff <mickey@cvs.openbsd.org>1996-05-08 09:47:41 +0000
committerMichael Shalayeff <mickey@cvs.openbsd.org>1996-05-08 09:47:41 +0000
commitd9bb02c0216427321f562ce65d5c5005bebd3016 (patch)
tree5aa898e39c51b8deb07a71804d00f653bc20ddb4 /sys/arch
parent180985eb10a03852d66c30edde0ccf51e4471bd8 (diff)
fix panic at reboot.
Diffstat (limited to 'sys/arch')
-rw-r--r--sys/arch/vax/vax/machdep.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/sys/arch/vax/vax/machdep.c b/sys/arch/vax/vax/machdep.c
index 1daedbd9cff..f00e302cca6 100644
--- a/sys/arch/vax/vax/machdep.c
+++ b/sys/arch/vax/vax/machdep.c
@@ -530,6 +530,10 @@ boot(howto)
{
showto = howto;
if ((howto & RB_NOSYNC) == 0 && waittime < 0) {
+ extern struct proc proc0;
+ /* allow safe curproc referencies */
+ if (curproc == NULL)
+ curproc = &proc0;
waittime = 0;
vfs_shutdown();
/*