From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 10932 invoked by alias); 30 May 2007 21:03:21 -0000 Received: (qmail 10900 invoked from network); 30 May 2007 21:03:12 -0000 Received: from unknown (69.17.117.3) by sourceware.org with QMTP; 30 May 2007 21:03:12 -0000 Received: (qmail 14774 invoked from network); 30 May 2007 21:03:12 -0000 Received: from dsl027-162-100.atl1.dsl.speakeasy.net (HELO otter.localdomain) ([216.27.162.100]) (envelope-sender ) by mail1.sea5.speakeasy.net (qmail-ldap-1.03) with SMTP for ; 30 May 2007 21:03:12 -0000 Received: from localhost (jmills@localhost) by otter.localdomain (8.11.6/8.11.6) with ESMTP id l4UL3E918399; Wed, 30 May 2007 21:03:14 GMT Date: Wed, 30 May 2007 21:06:00 -0000 From: John Mills Reply-To: John Mills To: ecos-discuss@ecos.sourceware.org cc: Andrew Lunn In-Reply-To: <20070530202206.GG32489@lunn.ch> Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Mailing-List: contact ecos-discuss-help@ecos.sourceware.org; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: ecos-discuss-owner@ecos.sourceware.org Subject: Re: [ECOS] General Q: Calling RedBoot CLI function from eCos app X-SW-Source: 2007-05/txt/msg00193.txt.bz2 Andrew - Thanks for the reply. On Wed, 30 May 2007, Andrew Lunn wrote: > On Wed, May 30, 2007 at 02:11:43PM -0500, John Mills wrote: > > Andrew - > > > > Thanks for the lead, but in my eCos app that macro just expands to NULL. > > The same code line works perfectly in RedBoot's 'main.c', however. > > What is the value of CYGSEM_HAL_VIRTUAL_VECTOR_CLAIM_VERSION in you > application? See hal/common/current/src/hal_if.c I find in my package configuration: /home/jmills/depot/trapeze/ECOSBUILD/dist/install/include/pkgconf/hal.h: #define CYGSEM_HAL_VIRTUAL_VECTOR_CLAIM_VERSION 1 If I understand your track here, that would activate the following lines in 'hal_if.c': #ifdef CYGSEM_HAL_VIRTUAL_VECTOR_CLAIM_VERSION CYGACC_CALL_IF_MONITOR_VERSION_SET(0); #endif which, I suppose, would in turn cause CYGACC_CALL_IF_MONITOR_VERSION() to resolve as '0', or NULL. Hence my print string. Is that sensible? - John -- Before posting, please read the FAQ: http://ecos.sourceware.org/fom/ecos and search the list archive: http://ecos.sourceware.org/ml/ecos-discuss