From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 8079 invoked by alias); 15 Oct 2003 15:09:11 -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 8072 invoked from network); 15 Oct 2003 15:09:10 -0000 Received: from unknown (HELO hermes.chez-thomas.org) (63.225.98.241) by sources.redhat.com with SMTP; 15 Oct 2003 15:09:10 -0000 Received: by hermes.chez-thomas.org (Postfix, from userid 2000) id 9DC2550E130; Wed, 15 Oct 2003 09:09:10 -0600 (MDT) Received: from localhost (localhost.localdomain [127.0.0.1]) by hermes.chez-thomas.org (Postfix) with ESMTP id 0087950E12F; Wed, 15 Oct 2003 09:09:07 -0600 (MDT) From: Gary Thomas To: James Yates Cc: ecos-discuss@sources.redhat.com In-Reply-To: References: Content-Type: text/plain Organization: MLB Associates Message-Id: <1066230547.32461.54.camel@hermes> Mime-Version: 1.0 Date: Wed, 15 Oct 2003 15:09:00 -0000 Content-Transfer-Encoding: 7bit X-Spam-Status: No, hits=-4.4 required=5.0 tests=AWL,EMAIL_ATTRIBUTION,IN_REP_TO,QUOTED_EMAIL_TEXT, REFERENCES,REPLY_WITH_QUOTES,USER_AGENT_XIMIAN autolearn=ham version=2.55 X-Spam-Level: X-Spam-Checker-Version: SpamAssassin 2.55 (1.174.2.19-2003-05-19-exp) Subject: RE: [ECOS] Problems with var_mk_defs.c X-SW-Source: 2003-10/txt/msg00257.txt.bz2 On Wed, 2003-10-15 at 09:03, James Yates wrote: > Gary, > > When I compile the following is output: > > make -r -C hal/sh/arch/current /ecos-d/Dev/eCos/builds/current/pc388_install/include/cyg/hal/sh_offsets.inc > make[1]: Entering directory `/ecos-d/Dev/eCos/builds/current/pc388_build/hal/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/current -I/ecos-d/ecos/ecos/packages/hal/sh/arch/current/src -I/ecos-d/ecos/ecos/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/pc388_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/hal/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/current -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_defs.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 character is `0' > /ecos-c/temp/ccmMeZK9.s:29: Error: bad expression > /ecos-c/temp/ccmMeZK9.s:29: Warning: rest of line ignored; first ignored character is `0' > /ecos-c/temp/ccmMeZK9.s:32: Error: bad expression > /ecos-c/temp/ccmMeZK9.s:32: Warning: rest of line ignored; first ignored character is `0' > /ecos-c/temp/ccmMeZK9.s:35: Error: bad expression > /ecos-c/temp/ccmMeZK9.s:35: Warning: rest of line ignored; first ignored character is `6' > /ecos-c/temp/ccmMeZK9.s:38: Error: bad expression > /ecos-c/temp/ccmMeZK9.s:38: Warning: rest of line ignored; first ignored character is `1' > /ecos-c/temp/ccmMeZK9.s:41: Error: bad expression > /ecos-c/temp/ccmMeZK9.s:41: Warning: rest of line ignored; first ignored character is `8' > /ecos-c/temp/ccmMeZK9.s:44: Error: bad expression > /ecos-c/temp/ccmMeZK9.s:44: Warning: rest of line ignored; first ignored character is `0' > /ecos-c/temp/ccmMeZK9.s:47: Error: bad expression > /ecos-c/temp/ccmMeZK9.s:47: Warning: rest of line ignored; first ignored character is `3' > /ecos-c/temp/ccmMeZK9.s:50: Error: bad expression > /ecos-c/temp/ccmMeZK9.s:50: Warning: rest of line ignored; first ignored character is `3' > make[1]: *** [/ecos-d/Dev/eCos/builds/current/pc388_install/include/cyg/hal/sh2_offsets.inc] Error 1 > make: *** [build] Error 2 > Try looking at the generated *.s file. My guess is that it has some spaces which the compiler/assembler doesn't like. Some prudent changes to your include files may fix it. > > For the code in var_mk_defs.c: > HAL_UCACHE_SIZE = 0, HAL_UCACHE_WAYS = 0, HAL_UCACHE_LINE_SIZE = 0, CYGNUM_HAL_ISR_MAX = 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 interrupt layout going up to 93 in var_intr.h whereas the SH2 7145 hash exception 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 this also be contributing. I am pretty new to eCos and there is some funky stuff 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 -- Gary Thomas MLB Associates -- Before posting, please read the FAQ: http://sources.redhat.com/fom/ecos and search the list archive: http://sources.redhat.com/ml/ecos-discuss