Arm Community
Site
Search
User
Site
Search
User
Support forums
Architectures and Processors forum
How to nest svc (svcall) on Cortex-M3 ?
Jump...
Cancel
State
Accepted Answer
+1
person also asked this
people also asked this
Locked
Locked
Replies
2 replies
Subscribers
347 subscribers
Views
5425 views
Users
0 members are here
Options
Share
More actions
Cancel
Related
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...