Subject: port-sh3/22025: src/sys/arch/sh3/dev/sci.c does not compile
To: None <gnats-bugs@gnats.netbsd.org>
From: None <m_furu-p@flow.dip.jp>
List: netbsd-bugs
Date: 07/01/2003 11:00:22
>Number:         22025
>Category:       port-sh3
>Synopsis:       src/sys/arch/sh3/dev/sci.c does not compile
>Confidential:   no
>Severity:       serious
>Priority:       medium
>Responsible:    port-sh3-maintainer
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Tue Jul 01 11:01:00 UTC 2003
>Closed-Date:
>Last-Modified:
>Originator:     FURUKAWA Masashi
>Release:        NetBSD 1.6T
>Organization:
>Environment:
NetBSD 1.6T (NCU397D) #4: Mon Jun 23 19:29:31 JST 2003
        furukawa@kiwi-nb:/usr/src/sys/arch/evbsh3/compile/NCU397D

>Description:
src/sys/arch/sh3/dev/sci.c does not compile

/usr/obj-evbsh3/tools-evbsh3/bin/sh--netbsdelf-gcc  -ffreestanding  -O1 -Wno-parentheses -Werror -Wall -Wno-main -Wno-format-zero-length -Wpointer-arith -Wmissing-prototypes -Wstrict-prototypes -Wno-sign-compare -Wno-uninitialized  -Devbsh3 -I.  -I../../../../arch -I../../../.. -nostdinc -DSH7709A -DNCU397 -DDONT_INIT_BSC -DHZ="0x32" -DDEBUG -DMAXUSERS=16 -D_KERNEL -D_KERNEL_OPT   -c ../../../../arch/sh3/dev/sci.c
../../../../arch/sh3/dev/sci.c: In function `sciintr':
../../../../arch/sh3/dev/sci.c:1183: `SCSPDR_SCP0DT' undeclared (first use in this function)
../../../../arch/sh3/dev/sci.c:1183: (Each undeclared identifier is reported only once
../../../../arch/sh3/dev/sci.c:1183: for each function it appears in.)
*** Error code 1

Stop.
nbmake: stopped in /usr/src/sys/arch/evbsh3/compile/NCU397D

>How-To-Repeat:
config with:
options SH3
sci* at shb?

>Fix:
--- sys/arch/sh3/include/scireg.h.orig  2002-04-29 02:10:36.000000000 +0900
+++ sys/arch/sh3/include/scireg.h       2003-07-01 18:36:35.000000000 +0900
@@ -80,7 +80,7 @@
 #define        SCSPTR_SPB0DT   0x01
 
 #if defined(SH3)
-#define        SCPTR_SCP0DT    0x01
+#define        SCSPDR_SCP0DT   0x01
 #endif
 
 #endif /* !_SH3_SCIREG_ */

>Release-Note:
>Audit-Trail:
>Unformatted: