From my code I need to figure out has my function been called from the ISR or just regular application code. I do know that application is running is the User Thread mode and ISR is in privileged handler mode. Could you anyone please provide me with the sources of C-function(s) or inline assembly which will let me efficiently solve this issue.
Thanks.
I think
STMDB R13!, {R1}
and
LDMIA R13!, {R1}
above are redundant.
Tapir,
Why do you say "I think"?
Are you still unsure of the rules for register preservation.
Let's give it a few more years.