This is the mail archive of the
ecos-discuss@sources.redhat.com
mailing list for the eCos project.
Re: Another port problem
- To: Cristiano Ligieri Pereira <cpereira at ics dot uci dot edu>
- Subject: Re: [ECOS] Another port problem
- From: Jonathan Larmour <jlarmour at redhat dot com>
- Date: Fri, 17 Aug 2001 00:05:09 +0100
- Cc: ecos-discuss at sourceware dot cygnus dot com
- Organization: Red Hat UK Ltd.
- References: <Pine.SOL.4.20.0108161529100.970-100000@washoe.ics.uci.edu>
Cristiano Ligieri Pereira wrote:
>
> Hi all,
>
> I'm compiling Redboot for RAM and trying to make it work on my XScale
> platform. The code is crashing in a very simple part:
>
> // clear BSS
> ldr r1,.__bss_start
> ldr r2,.__bss_end
> mov r0,#0
> cmp r1,r2
> beq 2f
> 1: str r0,[r1],#4
> cmp r1,r2
> bne 1b
> 2:
>
> After this cleaning loop I have code to light up a LED, but this code is
> not being reached.
>
> I'm also getting the following error on GDB console:
>
> "warning: Remote failure reply: E03"
>
> Before that code is executed I'm doing some hardware initialization and
> memory remapping.
>
> Does anyone have any idea of what could be causing this problem?
The obvious guess is that you're hitting a bad address (due to the
remapping potentially) and it's going wrong. You'd have to put something in
the abort_data VSR to find out what address. You can't easily use C of
course, because your BSS isn't set up :).
Jifl
--
Red Hat, Rustat House, Clifton Road, Cambridge, UK. Tel: +44 (1223) 271062
Maybe this world is another planet's Hell -Aldous Huxley || Opinions==mine