diff options
author | Michael Shalayeff <mickey@cvs.openbsd.org> | 1996-05-08 08:33:33 +0000 |
---|---|---|
committer | Michael Shalayeff <mickey@cvs.openbsd.org> | 1996-05-08 08:33:33 +0000 |
commit | 6a26614a5a212a559c79f8707884d970e6c07c99 (patch) | |
tree | 49dcbdd200e2c2ce38b83d73243db1047211292e /sys/arch | |
parent | b920c0ec821e17e9fd7a94ee8e691b1d046756e2 (diff) |
fix the panic at reboot.
Diffstat (limited to 'sys/arch')
-rw-r--r-- | sys/arch/pica/pica/machdep.c | 6 |
1 files changed, 5 insertions, 1 deletions
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.... */ |