Subject: port-mac68k/11566: unnecessary kernel dependency on serial driver
To: None <gnats-bugs@gnats.netbsd.org>
From: Chris Baird <cjb@brushtail.apana.org.au>
List: netbsd-bugs
Date: 11/25/2000 18:13:15
>Number: 11566
>Category: port-mac68k
>Synopsis: unnecessary kernel dependency on serial driver
>Confidential: no
>Severity: non-critical
>Priority: medium
>Responsible: port-mac68k-maintainer
>State: open
>Class: change-request
>Submitter-Id: net
>Arrival-Date: Sat Nov 25 18:13:01 PST 2000
>Closed-Date:
>Last-Modified:
>Originator: Chris Baird
>Release: 1.5_BETA
>Organization:
Australian Public Access Network Association
>Environment:
System: NetBSD skunk.apana.org.au 1.5_BETA NetBSD 1.5_BETA (SKUNK) #6: Sat Nov 25 12:36:21 EST 2000 root@skunk.apana.org.au:/usr/src/sys/arch/mac68k/compile/SKUNK mac68k
>Description:
As of 1.5_BETA, a single global variable declared by the serial driver
prevents building mac68k kernels without serial support.
>How-To-Repeat:
Attempt to build a kernel without the zsc/zstty serial device.
>Fix:
My chop and hack solution was to move the declaration of the offending
variable to a more "global" location. Something along the lines of...
--- ./sys/arch/mac68k/dev/zs.c Sat Nov 25 18:03:28 2000
+++ /sys/arch/mac68k/dev/zs.c Sat Nov 25 18:04:46 2000
@@ -144,5 +144,5 @@
dev_t mac68k_zsdev;
/* Mac stuff */
-volatile unsigned char *sccA = 0;
+extern volatile unsigned char *sccA = 0;
int zs_cn_check_speed __P((int bps));
--- ./sys/arch/mac68k/mac68k/machdep.c Sat Nov 25 18:10:24 2000
+++ /sys/arch/mac68k/mac68k/machdep.c Sat Nov 25 18:11:34 2000
@@ -156,2 +156,3 @@
u_long IOBase;
+volatile unsigned char *sccA = 0;
>Release-Note:
>Audit-Trail:
>Unformatted: