From: "Roland Caßebohm" <roland.cassebohm@visionsystems.de>
To: iz@vsr.si
Cc: ecos-discuss@sources.redhat.com
Subject: Re: [ECOS] exception when calling reset_platform
Date: Fri, 14 Jun 2002 03:45:00 -0000 [thread overview]
Message-ID: <200206141045.g5EAjVO08709@hhlx01.visionsystems.de> (raw)
In-Reply-To: <200206131916.21545.iz@vsr.si>
On Thursday, 13. June 2002 19:16, Iztok Zupet wrote:
> On Thursday 13 June 2002 18:20, Roland CaÃebohm wrote:
> > Hi,
> >
> > my ARM7TDMI (SNDS100 Board) makes an abort prefetch exception when the
> > application calls reset_platform().
> >
> > I added two nop's because I thought the processor prefetches the
> > init_done value, but this doesn't help:
> >
> > ----------
> > .global reset_platform
> > .type reset_platform,function
> > reset_platform:
> > #ifdef CYGSEM_HAL_ROM_MONITOR
> > // initialize CPSR (machine state register)
> > mov
> > r0,#(CPSR_IRQ_DISABLE|CPSR_FIQ_DISABLE|CPSR_SUPERVISOR_MODE) msr
> > cpsr,r0
> > b warm_reset
> > #else
> > mov r0,#0
> > mov pc,r0 // Jump to reset vector
> > //roland
> > mov r0,r0 // nop
> > mov r0,r0 // nop
> > #endif
> >
> > init_done:
> > .long 0xDEADB00B
> > ----------
> >
> > Does anybody know what's wrong?
> >
> > Roland
>
> Hi:
>
> Looks like that the abort prefetch hapens somewhere else, not in the code
> You've sent. Take a look at the reset vector and the code that executes
> there ( if it is in RAM). It may be corrupt for some reason. Anyhow, can
> You figure out the address of the exeption?
>
> iz
The exception seems to be at 0x31638:
void vs_reboot(void)
{
...
31638: ebffbb55 bl 20394 <reset_platform>
}
3163c: e91ba800 ldmdb r11, {r11, sp, pc}
--
Before posting, please read the FAQ: http://sources.redhat.com/fom/ecos
and search the list archive: http://sources.redhat.com/ml/ecos-discuss
next prev parent reply other threads:[~2002-06-14 10:45 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2002-06-13 9:20 Roland Caßebohm
2002-06-13 10:16 ` Iztok Zupet
2002-06-14 3:45 ` Roland Caßebohm [this message]
2002-06-14 5:04 ` Iztok Zupet
2002-06-14 5:41 ` Roland Caßebohm
2002-06-14 5:55 ` Iztok Zupet
2002-06-14 5:58 ` Roland Caßebohm
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=200206141045.g5EAjVO08709@hhlx01.visionsystems.de \
--to=roland.cassebohm@visionsystems.de \
--cc=ecos-discuss@sources.redhat.com \
--cc=iz@vsr.si \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).