0104
I Semestre 2014
2014160469
to execute. When the higher priority service routing is complete, the earlier running service
routing returns to complete.
Exception Frame
The exception frame is also called the interrupt stack in the context of asynchronous exceptions.
Two main reasons exist for needing an exception frame. One reason is to handle nested
exceptions. The other reason is that, as embedded architecture becomes more complex, the
ESR or ISR consequently increases complexity.
ESR and ISR Differences
One of the main differences between ESR and ISR is in the additional processor state
information saved. Another one is that an exception handler in many cases cannot prevent other
exceptions from occurring, while an ISR can prevent interrupts of the same or lower priority from
occurring.
Questions
Why is this an interesting topic?
This in an interesting topic because many real-time operating systems provide wrapper
functions to handle exceptions and interrupts in order to shield the embedded systems
programmer from the low-level details. This application programming layer allows the
programmer to focus on high-level exception processing rather than on the necessary, but
tedious, prologue and epilogue system-level processing for that exception. This isolation,
however, can create misunderstanding and become an obstacle when the programmer is
transformed from an embedded applications programmer intro an embedded systems
programmer.