This is the mail archive of the ecos-discuss@sources.redhat.com mailing list for the eCos project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

Re: Another port problem


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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]