Subject: port-pmax/13703: Kernels without option MIPS3 don't compile
To: None <gnats-bugs@gnats.netbsd.org>
From: None <Thilo.Manske@HEH.Uni-Oldenburg.DE>
List: netbsd-bugs
Date: 08/13/2001 11:22:05
>Number:         13703
>Category:       port-pmax
>Synopsis:       Kernels without option MIPS3 don't compile
>Confidential:   no
>Severity:       critical
>Priority:       medium
>Responsible:    port-pmax-maintainer
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Mon Aug 13 02:18:01 PDT 2001
>Closed-Date:
>Last-Modified:
>Originator:     Thilo Manske
>Release:        -current since June 28th (I guess)
>Organization:
Dies ist Thilos Unix Signature! Viel Spass damit.
>Environment:
	
System: NetBSD Max 1.5X NetBSD 1.5X (Max) #36: Mon Aug 13 01:28:35 MEST 2001 thilo@Max:/usr/src/sys/arch/pmax/compile/Max pmax
Architecture: mipsel
Machine: pmax
>Description:

cc  -O2 -mcpu=r3000 -Wall -Werror -Wstrict-prototypes -Wmissing-prototypes  -Wpointer-arith -Wno-uninitialized -Wno-main -G 0  -mno-abicalls -mno-half-pic -EL -I. -I../../../../arch -I../../../.. -nostdinc -DMIPS1 -DHZ=256 -DMAXUSERS=16 -D_KERNEL -D_KERNEL_OPT -Dpmax  -c ../../../../arch/pmax/pmax/cpu.c
../../../../arch/pmax/pmax/cpu.c: In function `cpuattach':
../../../../arch/pmax/pmax/cpu.c:120: `mips_L2CacheSize' undeclared (first use in this function)
../../../../arch/pmax/pmax/cpu.c:120: (Each undeclared identifier is reported only once
../../../../arch/pmax/pmax/cpu.c:120: for each function it appears in.)
../../../../arch/pmax/pmax/cpu.c:121: `mips_L2CacheMixed' undeclared (first use in this function)
../../../../arch/pmax/pmax/cpu.c:122: `mips_L2CacheIsSnooping' undeclared (first use in this function)
*** Error code 1

Stop.
make: stopped in /sys/arch/pmax/compile/Max

>How-To-Repeat:
>Fix:
--- cpu.c.old	Thu Jun 28 12:50:23 2001
+++ cpu.c	Mon Aug 13 01:03:53 2001
@@ -113,6 +113,7 @@
 		    mips_L1ICacheSize/1024, mips_L1DCacheSize/1024);
 		printf("%s: ", dev->dv_xname);
 		
+#ifdef MIPS3
 		if (!mips_L2CachePresent)
 			printf("no L2 cache\n");
 		else
@@ -120,5 +121,6 @@
 			    mips_L2CacheSize/1024, mips_L2CacheLSize,
 			    mips_L2CacheMixed ? "mixed" : "separated",
 			    mips_L2CacheIsSnooping? "snooping" : "no snooping");
+#endif
 	}
 }
>Release-Note:
>Audit-Trail:
>Unformatted: