From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 12584 invoked by alias); 15 Oct 2003 14:34:09 -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 12564 invoked from network); 15 Oct 2003 14:34:09 -0000 Received: from unknown (HELO sand4.gxn.net) (195.147.249.239) by sources.redhat.com with SMTP; 15 Oct 2003 14:34:09 -0000 Received: from ip02.quartzelec.adsl.gxn.net ([195.147.203.154] helo=server2000.Quartz.local) by sand4.gxn.net with esmtp (Exim 4.20) id 1A9mgM-0006XC-Ri for ecos-discuss@sources.redhat.com; Wed, 15 Oct 2003 15:31:22 +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 14:34:00 -0000 Message-ID: X-MS-Has-Attach: X-MS-TNEF-Correlator: From: "James Yates" To: Subject: [ECOS] Problems with var_mk_defs.c X-SW-Source: 2003-10/txt/msg00254.txt.bz2 In the SH Hal architecture I am getting build problems relating to var_mk_d= efs.c. If I comment out the code within int main(void), the compile proble= ms go away. When included, every call to DEFINE throws up a bad expression.= Can anyone explain to me what this file is actually doing, or indeed why i= t isn't working as I am completely stuck. #define DEFINE(sym, val) \ asm volatile("\n\t.equ\t" #sym ",%0" : : "i" (val)) int main(void) { // Caching details DEFINE(HAL_UCACHE_SIZE, HAL_UCACHE_SIZE); DEFINE(HAL_UCACHE_WAYS, HAL_UCACHE_WAYS); DEFINE(HAL_UCACHE_LINE_SIZE, HAL_UCACHE_LINE_SIZE); // Interrupt details DEFINE(CYGNUM_HAL_ISR_MAX, CYGNUM_HAL_ISR_MAX); DEFINE(CYGNUM_HAL_INTERRUPT_LVL0, CYGNUM_HAL_INTERRUPT_LVL0); DEFINE(CYGNUM_HAL_INTERRUPT_LVL_MAX, CYGNUM_HAL_INTERRUPT_LVL_MAX); #ifdef CYGNUM_HAL_INTERRUPT_LVL14 DEFINE(CYGNUM_HAL_INTERRUPT_LVL14, CYGNUM_HAL_INTERRUPT_LVL14); #endif DEFINE(CYGNUM_HAL_INTERRUPT_NMI, CYGNUM_HAL_INTERRUPT_NMI); DEFINE(CYGNUM_HAL_VECTOR_TRAP, CYGNUM_HAL_VECTOR_TRAP); DEFINE(CYGNUM_HAL_VECTOR_INTERRUPT, CYGNUM_HAL_VECTOR_INTERRUPT); return 0; } Many Thanks in advance James Yates -- Before posting, please read the FAQ: http://sources.redhat.com/fom/ecos and search the list archive: http://sources.redhat.com/ml/ecos-discuss