From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 4802 invoked by alias); 23 Sep 2003 11:50:53 -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 4795 invoked from network); 23 Sep 2003 11:50:52 -0000 Received: from unknown (HELO londo.lunn.ch) (80.238.139.98) by sources.redhat.com with SMTP; 23 Sep 2003 11:50:52 -0000 Received: from lunn by londo.lunn.ch with local (Exim 3.36 #1 (Debian)) id 1A1lgm-0007TH-00; Tue, 23 Sep 2003 13:50:40 +0200 Date: Tue, 23 Sep 2003 11:50:00 -0000 To: Eric de Jong Cc: eCos discussion Message-ID: <20030923115040.GD25606@lunn.ch> Mail-Followup-To: Eric de Jong , eCos discussion References: <3F6EC656.2020806@xpnet.com.br> <000201c3819e$723d9440$e33922c7@ericnt> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <000201c3819e$723d9440$e33922c7@ericnt> User-Agent: Mutt/1.5.4i From: Andrew Lunn Subject: Re: [ECOS] Problem with THUMB mode with AT91 X-SW-Source: 2003-09/txt/msg00412.txt.bz2 On Tue, Sep 23, 2003 at 08:46:07AM +0200, Eric de Jong wrote: > The LED macro is not suited for use in thumb mode. I cannot say when this bug > was introduced, as I did use thumb mode without debugging once. The simplest way > is to comment out the LED calls in vector.S where thumb mode is used (line 427, > 457, 462) > Another way is to modify the LED macro, eg change > mov r1,#0x0000FF00 > to > mov r1,#0xFF > lsl r1, #8 > > and in .macro _led y (for my custom EB40A platform) > mov r1,#(\y<<16) > to > mov r1,#(\y) > lsl r1,#16 Could you make a proper patch out of this, with a ChangeLog entry. Thanks Andrew -- Before posting, please read the FAQ: http://sources.redhat.com/fom/ecos and search the list archive: http://sources.redhat.com/ml/ecos-discuss