missing a cylinder group in brute force search
[unix-history] / usr / src / sys / kern / subr_prf.c
index a55b300..303db76 100644 (file)
@@ -1,4 +1,4 @@
-/*     subr_prf.c      4.23    82/10/31        */
+/*     subr_prf.c      4.25    82/12/17        */
 
 #include "../h/param.h"
 #include "../h/systm.h"
 
 #include "../h/param.h"
 #include "../h/systm.h"
@@ -10,6 +10,7 @@
 #include "../h/msgbuf.h"
 #include "../h/dir.h"
 #include "../h/user.h"
 #include "../h/msgbuf.h"
 #include "../h/dir.h"
 #include "../h/user.h"
+#include "../h/proc.h"
 #include "../h/tty.h"
 
 /*
 #include "../h/tty.h"
 
 /*
@@ -169,20 +170,21 @@ printn(n, b, touser)
 panic(s)
        char *s;
 {
 panic(s)
        char *s;
 {
-#if sun
+#ifdef sun
        register int *a5;
 #endif
        int bootopt = RB_AUTOBOOT;
 
        if (panicstr)
                bootopt |= RB_NOSYNC;
        register int *a5;
 #endif
        int bootopt = RB_AUTOBOOT;
 
        if (panicstr)
                bootopt |= RB_NOSYNC;
-#if sun
        else {
        else {
+               panicstr = s;
+#ifdef sun
                asm("movl a6, a5");
                traceback(a5, a5);
                asm("movl a6, a5");
                traceback(a5, a5);
-       }
+               resume(pcbb(u.u_procp));        /* for adb traceback */
 #endif
 #endif
-       panicstr = s;
+       }
        printf("panic: %s\n", s);
        boot(RB_PANIC, bootopt);
 }
        printf("panic: %s\n", s);
        boot(RB_PANIC, bootopt);
 }
@@ -233,11 +235,11 @@ putchar(c, touser)
                }
                return;
        }
                }
                return;
        }
-#if vax
+#ifdef vax
 #include "../vax/mtpr.h"               /* XXX */
 #endif
        if (c != '\0' && c != '\r' && c != 0177
 #include "../vax/mtpr.h"               /* XXX */
 #endif
        if (c != '\0' && c != '\r' && c != 0177
-#if vax
+#ifdef vax
            && mfpr(MAPEN)
 #endif
            ) {
            && mfpr(MAPEN)
 #endif
            ) {