public inbox for ecos-discuss@sourceware.org
 help / color / mirror / Atom feed
* [ECOS] Interrupts and SH
@ 2003-10-22 11:51 James Yates
  0 siblings, 0 replies; only message in thread
From: James Yates @ 2003-10-22 11:51 UTC (permalink / raw)
  To: Ecos Discuss (E-mail)

I am currently working on a platform port/variant port for an SH2 platform. I have a basic 2 threaded app up and running
I am trying to get the RTC running to enable Timeslicing. It appears that as soon as an RTC interrupt happens, driven
from the CMT, an exception is raised. After this nothing works. Can anyone explain the whole ISR/vector table
mechanism for the SH2. My guess is that the interrupt is calling a vector and jumping to a function that doesn't
exist to handle the ISR resulting in an exception. Tracing shows:

TRACE: mlqueue.cxx         [ 192] Cyg_Thread* Cyg_Scheduler_Implementation::schedule()
                                                    }}returning thread 00815670
TRACE: except.cxx          [ 247] void cyg_hal_deliver_exception()
                                                    {{enter
TRACE: except.cxx          [ 207] void Cyg_Exception_Control::deliver_exception()
                                                      {{enter
TRACE: except.cxx          [ 207] void Cyg_Exception_Control::deliver_exception()
                                                        ((exception number=4, exception info=00815578))
TRACE: except.cxx          [  83] void cyg_null_exception_handler()
                                                        {{enter
TRACE: except.cxx          [  83] void cyg_null_exception_handler()
                                                          ((data=00000000, exception=4, info=00815578))
TRACE: except.cxx          [  86] void cyg_null_exception_handler()
                                                          'Uncaught exception: 4'
TRACE: except.cxx          [  87] void cyg_null_exception_handler()
                                                        }}return void

Would I be correct in thinking that the exception info of 00815578 is the address that is jumped to for the ISR? There is nothing placed at this location which I guess would be why an exception is raised.

If anyone has any ideas I would be very grateful as I am completely stuck.

	Many Thanks in advance.

		James Yates

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

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2003-10-22 11:51 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2003-10-22 11:51 [ECOS] Interrupts and SH James Yates

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).