Re: What OS calls are ISR safe?
- From: "gerrit" <google@xxxxxxxxxxx>
- Date: 12 Oct 2005 15:04:19 -0700
Maybe I wasn't clear. I don't ever want to totally unsuspend based on
this interrupt (it is the SD Card removal interrupt) but I do want to
know if the card was removed while the system was suspended, so that
when the system finally does unsuspend it will know whether or not the
card was removed and I can do some custom behavior at the application
layer.
My OEMPowerOff:
disable interrupts
save interrupt mask
mask out non wake source interrupts
Get wake source
while no valid wake source
clear int sources
enable Ints
cpuEnterIdle // Processor actually goes to sleep here
disable Ints
Get wake source
restore int mask
enable Ints
While I can appreciate your caution Steve, CE would be the only RTOS I
know of that provides no API in an ISR. And in fact it is not true
since I can see several functions being called in the ISR context.
i.e.
PerfCountSinceTick()
ERRORMSG()
DEBUGMSG()
The kernel itself is obviously setting an event to cause the IST to
run! Theoretically as long as nothing suspends or causes the scheduler
to attempt to run it should be ok.
.
- Follow-Ups:
- Re: What OS calls are ISR safe?
- From: Steve Maillet \(eMVP\)
- Re: What OS calls are ISR safe?
- References:
- What OS calls are ISR safe?
- From: gerrit
- Re: What OS calls are ISR safe?
- From: Steve Maillet \(eMVP\)
- What OS calls are ISR safe?
- Prev by Date: Re: tftp of image
- Next by Date: Re: ActiveSync remote networking error 608.
- Previous by thread: Re: What OS calls are ISR safe?
- Next by thread: Re: What OS calls are ISR safe?
- Index(es):
Relevant Pages
|