fix panic at reboot.
authormickey <mickey@openbsd.org>
Wed, 8 May 1996 08:42:51 +0000 (08:42 +0000)
committermickey <mickey@openbsd.org>
Wed, 8 May 1996 08:42:51 +0000 (08:42 +0000)
sys/arch/pmax/pmax/machdep.c

index d7ff865..a7c6523 100644 (file)
@@ -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....
                 */