From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 3980 invoked by alias); 15 Oct 2003 15:02:28 -0000 Mailing-List: contact ecos-discuss-help@sources.redhat.com; run by ezmlm Precedence: bulk List-Subscribe: List-Archive: List-Post: List-Help: , Sender: ecos-discuss-owner@sources.redhat.com Received: (qmail 3806 invoked from network); 15 Oct 2003 15:02:27 -0000 Received: from unknown (HELO sand2.gxn.net) (195.147.249.208) by sources.redhat.com with SMTP; 15 Oct 2003 15:02:27 -0000 Received: from ip02.quartzelec.adsl.gxn.net ([195.147.203.154] helo=server2000.Quartz.local) by sand2.gxn.net with esmtp (Exim 4.20) id 1A9nQZ-0006Gr-Vq; Wed, 15 Oct 2003 16:19:08 +0100 content-class: urn:content-classes:message MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable X-MimeOLE: Produced By Microsoft Exchange V6.0.6375.0 Date: Wed, 15 Oct 2003 15:02:00 -0000 Message-ID: X-MS-Has-Attach: X-MS-TNEF-Correlator: From: "James Yates" To: "Gary Thomas" Cc: Subject: RE: [ECOS] Problems with var_mk_defs.c X-SW-Source: 2003-10/txt/msg00256.txt.bz2 Gary, When I compile the following is output: make -r -C hal/sh/arch/current /ecos-d/Dev/eCos/builds/current/pc388_instal= l/include/cyg/hal/sh_offsets.inc make[1]: Entering directory `/ecos-d/Dev/eCos/builds/current/pc388_build/ha= l/sh/arch/current' sh-elf-gcc -mb -m2 -O2 -Wall -Wpointer-arith -Wstrict-prototypes -Winline -= Wundef -Woverloaded-virtual -ggdb -ffunction-sections -fdata-sections -fno-= rtti -fno-exceptions -fvtable-gc -finit-priority -I/ecos-d/Dev/eCos/builds= /current/pc388_install/include -I/ecos-d/ecos/ecos/packages/hal/sh/arch/cur= rent -I/ecos-d/ecos/ecos/packages/hal/sh/arch/current/src -I/ecos-d/ecos/ec= os/packages/hal/sh/arch/current/tests -I. -Wp,-MD,sh_offsets.tmp -o hal_mk_= defs.tmp -S /ecos-d/ecos/ecos/packages/hal/sh/arch/current/src/hal_mk_defs.c fgrep .equ hal_mk_defs.tmp | sed s/#// > /ecos-d/Dev/eCos/builds/current/pc= 388_install/include/cyg/hal/sh_offsets.inc make[1]: Leaving directory `/ecos-d/Dev/eCos/builds/current/pc388_build/hal= /sh/arch/current' make -r -C hal/sh/sh2/current /ecos-d/Dev/eCos/builds/current/pc388_install= /include/cyg/hal/sh2_offsets.inc make[1]: Entering directory `/ecos-d/Dev/eCos/builds/current/pc388_build/ha= l/sh/sh2/current' sh-elf-gcc -mb -m2 -O2 -Wall -Wpointer-arith -Wstrict-prototypes -Winline -= Wundef -Woverloaded-virtual -ggdb -ffunction-sections -fdata-sections -fno-= rtti -fno-exceptions -fvtable-gc -finit-priority -I/ecos-d/Dev/eCos/builds= /current/pc388_install/include -I/ecos-d/ecos/ecos/packages/hal/sh/sh2/curr= ent -I/ecos-d/ecos/ecos/packages/hal/sh/sh2/current/src -I/ecos-d/ecos/ecos= /packages/hal/sh/sh2/current/tests -I. -Wp,-MD,sh2_offsets.tmp -o var_mk_de= fs.tmp /ecos-d/ecos/ecos/packages/hal/sh/sh2/current/src/var_mk_defs.c make[1]: Leaving directory `/ecos-d/Dev/eCos/builds/current/pc388_build/hal= /sh/sh2/current' /ecos-c/temp/ccmMeZK9.s: Assembler messages: make: Leaving directory `/ecos-d/Dev/eCos/builds/current/pc388_build' /ecos-c/temp/ccmMeZK9.s:26: Error: bad expression /ecos-c/temp/ccmMeZK9.s:26: Warning: rest of line ignored; first ignored ch= aracter is `0' /ecos-c/temp/ccmMeZK9.s:29: Error: bad expression /ecos-c/temp/ccmMeZK9.s:29: Warning: rest of line ignored; first ignored ch= aracter is `0' /ecos-c/temp/ccmMeZK9.s:32: Error: bad expression /ecos-c/temp/ccmMeZK9.s:32: Warning: rest of line ignored; first ignored ch= aracter is `0' /ecos-c/temp/ccmMeZK9.s:35: Error: bad expression /ecos-c/temp/ccmMeZK9.s:35: Warning: rest of line ignored; first ignored ch= aracter is `6' /ecos-c/temp/ccmMeZK9.s:38: Error: bad expression /ecos-c/temp/ccmMeZK9.s:38: Warning: rest of line ignored; first ignored ch= aracter is `1' /ecos-c/temp/ccmMeZK9.s:41: Error: bad expression /ecos-c/temp/ccmMeZK9.s:41: Warning: rest of line ignored; first ignored ch= aracter is `8' /ecos-c/temp/ccmMeZK9.s:44: Error: bad expression /ecos-c/temp/ccmMeZK9.s:44: Warning: rest of line ignored; first ignored ch= aracter is `0' /ecos-c/temp/ccmMeZK9.s:47: Error: bad expression /ecos-c/temp/ccmMeZK9.s:47: Warning: rest of line ignored; first ignored ch= aracter is `3' /ecos-c/temp/ccmMeZK9.s:50: Error: bad expression /ecos-c/temp/ccmMeZK9.s:50: Warning: rest of line ignored; first ignored ch= aracter is `3' make[1]: *** [/ecos-d/Dev/eCos/builds/current/pc388_install/include/cyg/hal= /sh2_offsets.inc] Error 1 make: *** [build] Error 2 For the code in var_mk_defs.c: HAL_UCACHE_SIZE =3D 0, HAL_UCACHE_WAYS =3D 0, HAL_UCACHE_LINE_SIZE =3D 0, C= YGNUM_HAL_ISR_MAX =3D 62 and so on. As for my port, the processor it is for has a much larger vector table. The= SH2 7044 variant I based this on has exception vectors for the custom inte= rrupt layout going up to 93 in var_intr.h whereas the SH2 7145 hash excepti= on vectors going up to 129. Could the size of the vector table be causing a= problem. The 7145 also has no cache so I have used another cache definition file mod= _regs_cac_3.h which specifies cache sizes as 0 and all addresses. Could thi= s also be contributing. I am pretty new to eCos and there is some funky stu= ff which I don't as yet understand. It has been quite hard work performing = a variant and platform port for board. Any help greatfully received. Many thanks. James -- Before posting, please read the FAQ: http://sources.redhat.com/fom/ecos and search the list archive: http://sources.redhat.com/ml/ecos-discuss