public inbox for ecos-devel@sourceware.org
 help / color / mirror / Atom feed
* Application Exception Handling
@ 2006-09-21 10:09 kalyani
  2006-09-21 10:44 ` Nick Garnett
  0 siblings, 1 reply; 4+ messages in thread
From: kalyani @ 2006-09-21 10:09 UTC (permalink / raw)
  To: ecos-devel


Hi all,
I am working on ECOS operating system. In this i want to implement the
exception handlers to my application. i have gone through some documents
provided in the site but i am unable to find the procedure to implement the
exception handlers. Can you tell me where can i get the information
regarding this, any recent documents are there? or can anyone suggest me
some idea to implement the Application Exception handling.

Regards,
Kalyani
-- 
View this message in context: http://www.nabble.com/Application-Exception-Handling-tf2310935.html#a6425040
Sent from the Sourceware - ecos-devel mailing list archive at Nabble.com.

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: Application Exception Handling
  2006-09-21 10:09 Application Exception Handling kalyani
@ 2006-09-21 10:44 ` Nick Garnett
  2006-09-21 11:21   ` kalyani
  0 siblings, 1 reply; 4+ messages in thread
From: Nick Garnett @ 2006-09-21 10:44 UTC (permalink / raw)
  To: kalyani; +Cc: ecos-devel

kalyani <Kalyani.Korubilli@Honeywell.com> writes:

> Hi all,
> I am working on ECOS operating system. In this i want to implement the
> exception handlers to my application. i have gone through some documents
> provided in the site but i am unable to find the procedure to implement the
> exception handlers. Can you tell me where can i get the information
> regarding this, any recent documents are there? or can anyone suggest me
> some idea to implement the Application Exception handling.

If you want to handle hardware exceptions then you can either plug
your own routines into the VSR table or enable the kernel exception
delivery mechanism. Documentation for the former can be found here:

http://ecos.sourceware.org/docs-latest/ref/hal-interrupt-handling.html

Documentation for the latter can be found here:

http://ecos.sourceware.org/docs-latest/ref/kernel-exceptions.html

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

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: Application Exception Handling
  2006-09-21 10:44 ` Nick Garnett
@ 2006-09-21 11:21   ` kalyani
  2006-09-21 16:23     ` Nick Garnett
  0 siblings, 1 reply; 4+ messages in thread
From: kalyani @ 2006-09-21 11:21 UTC (permalink / raw)
  To: ecos-devel


Hi, thanks for the reply. Actually i am new to this concept, i have gone
through the links which you have sent. How to write our own exception
handlers into VSR is what i want to know. I want to implement this at
Application level. Kernel exception is the default configuration as i
understood from the document. It is given that VSRshould be written in
assembly language for Application exception handler. Can you please clarify
all my doubts and please can you provide me any example codes for this
exception handlers if any which have already been  implemented.

Regards,
Kalyani 

Nick Garnett wrote:
> 
> kalyani <Kalyani.Korubilli@Honeywell.com> writes:
> 
>> Hi all,
>> I am working on ECOS operating system. In this i want to implement the
>> exception handlers to my application. i have gone through some documents
>> provided in the site but i am unable to find the procedure to implement
>> the
>> exception handlers. Can you tell me where can i get the information
>> regarding this, any recent documents are there? or can anyone suggest me
>> some idea to implement the Application Exception handling.
> 
> If you want to handle hardware exceptions then you can either plug
> your own routines into the VSR table or enable the kernel exception
> delivery mechanism. Documentation for the former can be found here:
> 
> http://ecos.sourceware.org/docs-latest/ref/hal-interrupt-handling.html
> 
> Documentation for the latter can be found here:
> 
> http://ecos.sourceware.org/docs-latest/ref/kernel-exceptions.html
> 
> -- 
> Nick Garnett                                 eCos Kernel Architect
> http://www.ecoscentric.com            The eCos and RedBoot experts
> 
> 
> 

-- 
View this message in context: http://www.nabble.com/Application-Exception-Handling-tf2310935.html#a6425960
Sent from the Sourceware - ecos-devel mailing list archive at Nabble.com.

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: Application Exception Handling
  2006-09-21 11:21   ` kalyani
@ 2006-09-21 16:23     ` Nick Garnett
  0 siblings, 0 replies; 4+ messages in thread
From: Nick Garnett @ 2006-09-21 16:23 UTC (permalink / raw)
  To: kalyani; +Cc: ecos-devel

kalyani <Kalyani.Korubilli@Honeywell.com> writes:

> Hi, thanks for the reply. Actually i am new to this concept, i have gone
> through the links which you have sent. How to write our own exception
> handlers into VSR is what i want to know. I want to implement this at
> Application level. Kernel exception is the default configuration as i
> understood from the document. It is given that VSRshould be written in
> assembly language for Application exception handler. Can you please clarify
> all my doubts and please can you provide me any example codes for this
> exception handlers if any which have already been  implemented.

VSRs are entered after minimal processing and with the state as close
to the CPU exception entry state as possible. If there has been any
decoding of the exception source then some registers may have been
saved somewhere architecture specific and will now contain some other
data -- usually some representation of the exception number or VSR
table index.

Plugging the VSRs is not done very often, and there are no
examples. You don't say what architecture you are working on, so any
example may not be appropriate. Mainly you need to know about how the
CPU delivers exceptions.

The best thing to do is to look at how the default exception VSR
handler works in vectors.S and duplicate it as far as is necessary for
your purposes.


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

^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2006-09-21 16:23 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2006-09-21 10:09 Application Exception Handling kalyani
2006-09-21 10:44 ` Nick Garnett
2006-09-21 11:21   ` kalyani
2006-09-21 16:23     ` Nick Garnett

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