Subject: port-evbarm/33276: evbarm/VIPER doesn't compile
To: None <port-evbarm-maintainer@netbsd.org, gnats-admin@netbsd.org,>
From: Peter Postma <peter@pointless.nl>
List: netbsd-bugs
Date: 04/17/2006 17:45:01
>Number:         33276
>Category:       port-evbarm
>Synopsis:       evbarm/VIPER doesn't compile
>Confidential:   no
>Severity:       critical
>Priority:       high
>Responsible:    port-evbarm-maintainer
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Mon Apr 17 17:45:00 +0000 2006
>Originator:     Peter Postma
>Release:        NetBSD 3.99.17
>Organization:
>Environment:
System: NetBSD jupiter.pointless.nl 3.99.17 NetBSD 3.99.17 (GENERIC) #16: Thu Apr 13 17:49:27 CEST 2006 peter@jupiter.pointless.nl:/devel/obj/sys/arch/i386/compile/GENERIC i386
Architecture: i386
Machine: i386
>Description:
	kernel evbarm/VIPER doesn't compile:

#   compile  VIPER/viper_start.o
/devel/obj/tooldir.NetBSD-3.99.17-i386/bin/arm--netbsdelf-gcc -x assembler-with-cpp -mcpu=xscale -D_LOCORE -I. -I/home/peter/netbsd/src/sys/arch -I/home/peter/netbsd/src/sys -nostdinc -DDIAGNOSTIC -DMAXUSERS=32 -D_KERNEL -D_KERNEL_OPT -I/home/peter/netbsd/src/sys/lib/libkern/../../../common/lib/libc/quad -I/home/peter/netbsd/src/sys/lib/libkern/../../../common/lib/libc/string -I/home/peter/netbsd/src/sys/lib/libkern/../../../common/lib/libc/arch/arm/string -c /home/peter/netbsd/src/sys/arch/evbarm/viper/viper_start.S
/home/peter/netbsd/src/sys/arch/evbarm/viper/viper_start.S: Assembler messages:
/home/peter/netbsd/src/sys/arch/evbarm/viper/viper_start.S:226: Error: undefined symbol DCACHE_SIZE used as an immediate value

>How-To-Repeat:
	./build.sh -m evbarm kernel=VIPER
>Fix:
	define DCACHE_SIZE like in arm/arm/cpufunc_asm_xscale.S ?