This is the mail archive of the
ecos-discuss@sources.redhat.com
mailing list for the eCos project.
Re: Determining current context
- From: "Gary D. Thomas" <gary dot thomas at mind dot be>
- To: David Brennan <eCos at brennanhome dot cxm>
- Cc: eCos Discussion <ecos-discuss at sources dot redhat dot com>
- Date: 26 May 2003 15:38:51 -0600
- Subject: Re: [ECOS] Determining current context
- Organization:
- References: <1053971473.2475.35.camel@clifford.brennanhome.cxm>
On Mon, 2003-05-26 at 11:51, David Brennan wrote:
> Is there a function somewhere which will tell my code what context it is
> currently in?
> Specifically this is for i386-pc platform if that matters.
What sort of context are you referring to? Do you mean ISR vs DSR vs
thread? In this case, you'll just have to know by design. In other
words, an ISR will be a particular piece of code that only runs as
a direct result of an interrupt. This code should not be used any
other way. Similarly, a DSR is only run as a result of an ISR causing
it to be dispatched. All other code is thread code.
--
Gary D. Thomas <gary.thomas@mind.be>
--
Before posting, please read the FAQ: http://sources.redhat.com/fom/ecos
and search the list archive: http://sources.redhat.com/ml/ecos-discuss