From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 9490 invoked by alias); 2 Aug 2004 13:23:19 -0000 Mailing-List: contact ecos-maintainers-help@sources.redhat.com; run by ezmlm Precedence: bulk List-Subscribe: List-Post: List-Help: , Sender: ecos-maintainers-owner@sources.redhat.com Received: (qmail 9468 invoked from network); 2 Aug 2004 13:23:16 -0000 To: davarn@free.fr Cc: ecos-patches@ecos.sourceware.org, ecos-maintainers@ecos.sourceware.org Subject: Re: at91 watchdog on eb42 References: <1090845473.4104fb212a10b@imp5-q.free.fr> <1091001934.41075e4ea029d@imp6-q.free.fr> <1091172281.4109f7b959cff@imp5-q.free.fr> <1091448136.410e2d48adf27@imp5-q.free.fr> From: Nick Garnett Original-Sender: nickg@ecoscentric.com Date: Mon, 02 Aug 2004 13:23:00 -0000 In-Reply-To: <1091448136.410e2d48adf27@imp5-q.free.fr> Message-ID: User-Agent: Gnus/5.09 (Gnus v5.9.0) Emacs/21.3 MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-SW-Source: 2004-08/txt/msg00002.txt.bz2 davarn@free.fr writes: > Hello, > > The change is really the minimum, even if it is quite important. > Tis is due to the fact that on eb42 board, if Interrupt is used in init_hw, the > object is not already intialized so the attach function assert. > Moving it in the start function make the thing work, and does not change the > behavior at all. > To be closer to the original code, it is necessary to investigate object > intialization on eb42 board. I was also concerned about changes to var_io.h. Your patch seems to be deleting large numbers of definitions. I'm also not sure what the change to AT91_US_BAUD() is going to do. The problem with the interrupt object can be fixed by adding CYGBLD_ATTRIB_INIT_PRI() to the interrupt object definition: static Cyg_Interrupt wdint( CYGNUM_HAL_INTERRUPT_WATCHDOG, INT_PRIO, 0, isr, NULL ) CYGBLD_ATTRIB_INIT_PRI( CYG_INIT_DRIVERS ); This only seems to affect some targets, we haven't worked out why this is yet. -- Nick Garnett eCos Kernel Architect http://www.ecoscentric.com/ The eCos and RedBoot experts