From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 23263 invoked by alias); 30 May 2007 21:12:48 -0000 Received: (qmail 23255 invoked by uid 22791); 30 May 2007 21:12:48 -0000 X-Spam-Check-By: sourceware.org Received: from londo.lunn.ch (HELO londo.lunn.ch) (80.238.139.98) by sourceware.org (qpsmtpd/0.31) with ESMTP; Wed, 30 May 2007 21:12:46 +0000 Received: from lunn by londo.lunn.ch with local (Exim 3.36 #1 (Debian)) id 1HtVT3-0004OV-00; Wed, 30 May 2007 23:12:29 +0200 Date: Wed, 30 May 2007 21:41:00 -0000 To: John Mills Cc: ecos-discuss@ecos.sourceware.org, Andrew Lunn Message-ID: <20070530211229.GI32489@lunn.ch> Mail-Followup-To: John Mills , ecos-discuss@ecos.sourceware.org, Andrew Lunn References: <20070530202206.GG32489@lunn.ch> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.5.13 (2006-08-11) From: Andrew Lunn X-IsSubscribed: yes 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/msg00195.txt.bz2 On Wed, May 30, 2007 at 04:03:14PM -0500, John Mills wrote: > 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? Yes, that is what i was thinking. So the next question is why is it set to 1? cdl_option CYGSEM_HAL_VIRTUAL_VECTOR_CLAIM_VERSION { display "Claim version virtual vectors" default_value { CYGSEM_HAL_VIRTUAL_VECTOR_INIT_WHOLE_TABLE } description " This option will cause the version virtual vectors to be claimed." } Is CYGSEM_HAL_VIRTUAL_VECTOR_INIT_WHOLE_TABLE true? cdl_option CYGSEM_HAL_VIRTUAL_VECTOR_INIT_WHOLE_TABLE { display "Initialize whole of virtual vector table" default_value { CYG_HAL_STARTUP != "RAM" || !CYGSEM_HAL_USE_ROM_MONITOR } do you have a RAM image? Is CYGSEM_HAL_USE_ROM_MONITOR true? Andrew -- Before posting, please read the FAQ: http://ecos.sourceware.org/fom/ecos and search the list archive: http://ecos.sourceware.org/ml/ecos-discuss