public inbox for ecos-discuss@sourceware.org
 help / color / mirror / Atom feed
From: Nick Garnett <nickg@ecoscentric.com>
To: "Dirk Broer" <dbroer@matrics.com>
Cc: "ECOS" <ecos-discuss@sources.redhat.com>
Subject: Re: [ECOS] Unexpected exception handler call (0x53)
Date: Mon, 24 Nov 2003 14:16:00 -0000	[thread overview]
Message-ID: <m3vfp9q2c9.fsf@miso.calivar.com> (raw)
In-Reply-To: <EFEEIJLMMJEMDAEMCNIGOEKBCLAA.dbroer@matrics.com>

"Dirk Broer" <dbroer@matrics.com> writes:

> We are newly targeting an arm based board.
> 
> We get often an exception with 0x53 (83).

Do you really mean exception 0x53? The ARM only has four possible
exceptions, numbered 1-4. Do you actually mean an interrupt?
Alternatively, maybe the stack is being corrupted and the exception
value is bogus.

> 
> Back Trace shows nothing interesting.

What does backtrace actually show?

> 
> How best to proceed to track this down?  Where would the ‘real’ stack have
> been stored?  Was it stored?

Exceptions are usually handled on the stack that was current when the
exception occurred. In GDB the value of r13 will be the SP of the
interrupted code. If this is a real exception then looking at what the
insruction pointed to by the PC was doing should give you a clue.

> 
> My best guess is that this is the default handler, should we override this?
> Again, can we recover the stack?

You should not need to do anything special here. The default VSR
should dump you into the GDB stubs, which is what you want.

> 
> We are still implementing ‘info threads’ and right now have no direct
> visibility on the state of other threads in the system.
>

Why do you need to implement the "info threads" stuff? This is all
handled by target-independent code, HAL ports should not need to do
anything about this.

-- 
Nick Garnett                    eCos Kernel Architect
http://www.ecoscentric.com      The eCos and RedBoot experts


--
Before posting, please read the FAQ: http://sources.redhat.com/fom/ecos
and search the list archive: http://sources.redhat.com/ml/ecos-discuss

  reply	other threads:[~2003-11-24 14:16 UTC|newest]

Thread overview: 16+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2003-11-24  4:48 Dirk Broer
2003-11-24 14:16 ` Nick Garnett [this message]
2003-11-24 14:57   ` [ECOS] help for building microwindows centraility_liu
2003-11-24 15:01     ` Gary Thomas
2003-11-24 15:05       ` alfred
2003-11-24 15:08         ` Gary Thomas
2003-11-24 15:13           ` alfred
2003-11-24 15:19             ` alfred
2003-11-24 15:23               ` Gary Thomas
2003-11-24 15:21             ` Gary Thomas
2003-11-24 15:28               ` alfred
2003-11-24 15:32                 ` Gary Thomas
2003-11-24 15:49                   ` alfred
2003-11-24 15:53                     ` alfred
2003-11-24 16:09                       ` Gary Thomas
2003-11-24 16:22                         ` alfred

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=m3vfp9q2c9.fsf@miso.calivar.com \
    --to=nickg@ecoscentric.com \
    --cc=dbroer@matrics.com \
    --cc=ecos-discuss@sources.redhat.com \
    /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).