On 04/01/2013 19:01, Peter Persson wrote:
__attribute__((interrupt)) is perfect to write trap handlers and usually doesn't cause any headaches there. Is there a sober way to get access to the current stack content?
Unfortunately, no.__attribute__((interrupt)) has no effect on how the parameters are fetched. Whether or not it is present, the function expects a standard jsr stack frame. This is obviously wrong for exception frames, and it is even worse since the stack offset of the parameters depends on the type of CPU running those instructions.
-- Vincent Rivière