Arm Community
Site
Search
User
Site
Search
User
Support forums
Architectures and Processors forum
How to nest svc (svcall) on Cortex-M3 ?
State
Accepted Answer
+1
person also asked this
people also asked this
Locked
Locked
Replies
2 replies
Subscribers
350 subscribers
Views
5219 views
Users
0 members are here
Options
Share
More actions
Related
How was your experience today?
This discussion has been locked.
You can no longer post new replies to this discussion. If you have a question you can start a new discussion
How to nest svc (svcall) on Cortex-M3 ?
Barga
over 9 years ago
How to nest svc, eg
void svcall_handler(){ if(smth_happened()){ asm volatile("svc #0"); } }
Thanks.
Top replies
Barga
over 9 years ago
in reply to
Barga
+1
verified
It works for synchronous exceptions(SVC) but wont work properly with asynchronous exceptions like PendSV because we cannot write directly to EPSR by MSR instruction. So if the processor interrupts on continuable...
0
Quote