first version with 68k stuff
authorBill Joy <root@ucbvax.Berkeley.EDU>
Sun, 31 Oct 1982 16:26:35 +0000 (08:26 -0800)
committerBill Joy <root@ucbvax.Berkeley.EDU>
Sun, 31 Oct 1982 16:26:35 +0000 (08:26 -0800)
SCCS-vsn: sys/kern/subr_prf.c 4.23

usr/src/sys/kern/subr_prf.c

index 509c1ff..a55b300 100644 (file)
@@ -1,4 +1,4 @@
-/*     subr_prf.c      4.22    82/10/10        */
+/*     subr_prf.c      4.23    82/10/31        */
 
 #include "../h/param.h"
 #include "../h/systm.h"
 
 #include "../h/param.h"
 #include "../h/systm.h"
@@ -169,10 +169,19 @@ printn(n, b, touser)
 panic(s)
        char *s;
 {
 panic(s)
        char *s;
 {
+#if sun
+       register int *a5;
+#endif
        int bootopt = RB_AUTOBOOT;
 
        if (panicstr)
                bootopt |= RB_NOSYNC;
        int bootopt = RB_AUTOBOOT;
 
        if (panicstr)
                bootopt |= RB_NOSYNC;
+#if sun
+       else {
+               asm("movl a6, a5");
+               traceback(a5, a5);
+       }
+#endif
        panicstr = s;
        printf("panic: %s\n", s);
        boot(RB_PANIC, bootopt);
        panicstr = s;
        printf("panic: %s\n", s);
        boot(RB_PANIC, bootopt);
@@ -224,8 +233,14 @@ putchar(c, touser)
                }
                return;
        }
                }
                return;
        }
+#if vax
 #include "../vax/mtpr.h"               /* XXX */
 #include "../vax/mtpr.h"               /* XXX */
-       if (c != '\0' && c != '\r' && c != 0177 && mfpr(MAPEN)) {
+#endif
+       if (c != '\0' && c != '\r' && c != 0177
+#if vax
+           && mfpr(MAPEN)
+#endif
+           ) {
                if (msgbuf.msg_magic != MSG_MAGIC) {
                        msgbuf.msg_bufx = 0;
                        msgbuf.msg_magic = MSG_MAGIC;
                if (msgbuf.msg_magic != MSG_MAGIC) {
                        msgbuf.msg_bufx = 0;
                        msgbuf.msg_magic = MSG_MAGIC;