Subject: port-i386/1017: ddb can't execute 'c' command
To: None <gnats-admin@sun-lamp.cs.berkeley.edu>
From: Masanobu Saitoh <saitoh@spa.is.uec.ac.jp>
List: netbsd-bugs
Date: 05/03/1995 10:35:02
>Number:         1017
>Category:       port-i386
>Synopsis:       ddb can't execute 'c' command
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    gnats-admin (GNATS administrator)
>State:          open
>Class:          change-request
>Submitter-Id:   net
>Arrival-Date:   Wed May  3 10:35:01 1995
>Originator:     Masanobu Saitoh
>Organization:
The University of Electro-Communications
>Release:        -current 95/05/03
>Environment:
	
NetBSD mincore.spa.is.uec.ac.jp 1.0A NetBSD 1.0A (ISYS) #36: Wed May  3 18:29:31 JST 1995     saitoh@mincore.spa.is.uec.ac.jp:/var/sources/0503/src/sys/arch/i386/compile/ISYS i386

>Description:
	In DDB, continue command can't execute.
	This is caused by pccnpollc()'s bug.

>How-To-Repeat:
	Push CTRL-ALT-ESC, 'c' and RERUEN.
>Fix:

	Apply this patch.

--- ORGpccons.c	Wed May  3 18:08:23 1995
+++ NEWpccons.c	Wed May  3 01:58:05 1995
@@ -776,6 +776,7 @@
 	polling = on;
 	if (!on) {
 		register int s;
+		struct pc_softc *sc = pccd.cd_devs[PCUNIT(dev)];
 
 		/*
 		 * If disabling polling, make sure there are no bytes left in
@@ -783,7 +784,7 @@
 		 * won't get any further interrupts.
 		 */
 		s = spltty();
-		pcintr(0);
+		pcintr(sc);
 		splx(s);
 	}
 }	
>Audit-Trail:
>Unformatted: