From: mickey Date: Wed, 8 May 1996 08:33:32 +0000 (+0000) Subject: fix the panic at reboot. X-Git-Url: http://artulab.com/gitweb/?a=commitdiff_plain;h=0b3ef3eaa0fdbc204744404d031049ab77430b01;p=openbsd fix the panic at reboot. --- diff --git a/sys/arch/pica/pica/machdep.c b/sys/arch/pica/pica/machdep.c index 1173542a3ff..ab68c064d33 100644 --- a/sys/arch/pica/pica/machdep.c +++ b/sys/arch/pica/pica/machdep.c @@ -37,7 +37,7 @@ * SUCH DAMAGE. * * from: @(#)machdep.c 8.3 (Berkeley) 1/12/94 - * $Id: machdep.c,v 1.6 1996/05/01 18:16:09 pefo Exp $ + * $Id: machdep.c,v 1.7 1996/05/08 08:33:32 mickey Exp $ */ /* from: Utah Hdr: machdep.c 1.63 91/04/24 */ @@ -878,6 +878,10 @@ boot(howto) boothowto = howto; if ((howto & RB_NOSYNC) == 0 && waittime < 0) { + extern struct proc proc0; + /* fill curproc with live object */ + if (curproc == NULL) + curproc = &proc0; /* * Synchronize the disks.... */