Module Name:    src
Committed By:   andvar
Date:           Tue Dec 12 23:38:11 UTC 2023

Modified Files:
        src/sys/arch/sparc64/dev: zs.c
        src/sys/arch/sun2/dev: zs.c

Log Message:
remove TTY_DEBUG code from sun2/sparc64 zs.c code. it doesn't look relevant
to this particular drivers and likely is a leftover from some historical code.


To generate a diff of this commit:
cvs rdiff -u -r1.80 -r1.81 src/sys/arch/sparc64/dev/zs.c
cvs rdiff -u -r1.25 -r1.26 src/sys/arch/sun2/dev/zs.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

Modified files:

Index: src/sys/arch/sparc64/dev/zs.c
diff -u src/sys/arch/sparc64/dev/zs.c:1.80 src/sys/arch/sparc64/dev/zs.c:1.81
--- src/sys/arch/sparc64/dev/zs.c:1.80	Wed Oct 26 23:59:56 2022
+++ src/sys/arch/sparc64/dev/zs.c	Tue Dec 12 23:38:11 2023
@@ -1,4 +1,4 @@
-/*	$NetBSD: zs.c,v 1.80 2022/10/26 23:59:56 riastradh Exp $	*/
+/*	$NetBSD: zs.c,v 1.81 2023/12/12 23:38:11 andvar Exp $	*/
 
 /*-
  * Copyright (c) 1996 The NetBSD Foundation, Inc.
@@ -38,7 +38,7 @@
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: zs.c,v 1.80 2022/10/26 23:59:56 riastradh Exp $");
+__KERNEL_RCSID(0, "$NetBSD: zs.c,v 1.81 2023/12/12 23:38:11 andvar Exp $");
 
 #include "opt_ddb.h"
 #include "opt_kgdb.h"
@@ -532,9 +532,6 @@ zscheckintr(void *arg)
 }
 
 
-/*
- * We need this only for TTY_DEBUG purposes.
- */
 static void
 zssoft(void *arg)
 {
@@ -545,18 +542,6 @@ zssoft(void *arg)
 	ttylock(tp);
 #endif
 	(void)zsc_intr_soft(zsc);
-#ifdef TTY_DEBUG
-	{
-		struct zstty_softc *zst0 = zsc->zsc_cs[0]->cs_private;
-		struct zstty_softc *zst1 = zsc->zsc_cs[1]->cs_private;
-		if (zst0->zst_overflows || zst1->zst_overflows ) {
-			struct trapframe *frame = (struct trapframe *)arg;
-			
-			printf("zs silo overflow from %p\n",
-			       (long)frame->tf_pc);
-		}
-	}
-#endif
 #if 0 /* not yet */
 	ttyunlock(tp);
 #endif

Index: src/sys/arch/sun2/dev/zs.c
diff -u src/sys/arch/sun2/dev/zs.c:1.25 src/sys/arch/sun2/dev/zs.c:1.26
--- src/sys/arch/sun2/dev/zs.c:1.25	Wed Oct 26 23:38:09 2022
+++ src/sys/arch/sun2/dev/zs.c	Tue Dec 12 23:38:11 2023
@@ -1,4 +1,4 @@
-/*	$NetBSD: zs.c,v 1.25 2022/10/26 23:38:09 riastradh Exp $	*/
+/*	$NetBSD: zs.c,v 1.26 2023/12/12 23:38:11 andvar Exp $	*/
 
 /*-
  * Copyright (c) 1996 The NetBSD Foundation, Inc.
@@ -38,7 +38,7 @@
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: zs.c,v 1.25 2022/10/26 23:38:09 riastradh Exp $");
+__KERNEL_RCSID(0, "$NetBSD: zs.c,v 1.26 2023/12/12 23:38:11 andvar Exp $");
 
 #include "opt_ddb.h"
 #include "opt_kgdb.h"
@@ -373,9 +373,6 @@ zscheckintr(void *arg)
 }
 
 
-/*
- * We need this only for TTY_DEBUG purposes.
- */
 static void
 zssoft(void *arg)
 {
@@ -385,18 +382,7 @@ zssoft(void *arg)
 	/* Make sure we call the tty layer at spltty. */
 	s = spltty();
 	(void)zsc_intr_soft(zsc);
-#ifdef TTY_DEBUG
-	{
-		struct zstty_softc *zst0 = zsc->zsc_cs[0]->cs_private;
-		struct zstty_softc *zst1 = zsc->zsc_cs[1]->cs_private;
-		if (zst0->zst_overflows || zst1->zst_overflows ) {
-			struct trapframe *frame = arg;	/* XXX */
 
-			printf("zs silo overflow from %p\n",
-			    (long)frame->tf_pc);
-		}
-	}
-#endif
 	splx(s);
 }
 

Reply via email to