From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 4619 invoked by alias); 15 Oct 2003 15:50:40 -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 4557 invoked from network); 15 Oct 2003 15:50:36 -0000 Received: from unknown (HELO hermes.chez-thomas.org) (63.225.98.241) by sources.redhat.com with SMTP; 15 Oct 2003 15:50:36 -0000 Received: by hermes.chez-thomas.org (Postfix, from userid 2000) id 18F0150E131; Wed, 15 Oct 2003 09:50:36 -0600 (MDT) Received: from localhost (localhost.localdomain [127.0.0.1]) by hermes.chez-thomas.org (Postfix) with ESMTP id 20AFA50E130; Wed, 15 Oct 2003 09:50:35 -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: <1066233034.32461.57.camel@hermes> Mime-Version: 1.0 Date: Wed, 15 Oct 2003 15:50: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/msg00259.txt.bz2 On Wed, 2003-10-15 at 09:46, James Yates wrote: > After looking at the generated var_mk_defs.s file by adding -save-temps to the global compiler flags, the first line the compiler complains about is: > > .equ HAL_UCACHE_SIZE, #0 > .loc 1 82 0 > > Would I be right in assuming that this should read: > > .equ HAL_UCACHE_SIZE, 0 > .loc 1 82 0 > > The function call that creates this line is: > DEFINE(HAL_UCACHE_SIZE, HAL_UCACHE_SIZE); > > The macro itself: > #define DEFINE(sym, val) \ > asm volatile("\n\t.equ\t" #sym ", %0" : : "i" (val)) > > I guess this is the assembler equivalent of #define HAL_UCACHE_SIZE 0 so that wherever HAL_UCACHE_SIZE is referenced, the value of 0 is used. > > However, I am unsure about how to modify the macro, my skill in assembler is extremely poor. Any ideas? > It looks right to me. It seems that different assemblers (and even different versions sometimes) want to see this written differently. Give it a try (sans "#") and see what happens. -- 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