Arm Community
Site
Search
User
Site
Search
User
Support forums
Arm Development Studio forum
How to enter USR mode from SVC mode?
Jump...
Cancel
Locked
Locked
Replies
3 replies
Subscribers
119 subscribers
Views
4067 views
Users
0 members are here
Options
Share
More actions
Cancel
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 enter USR mode from SVC mode?
Jerry Fan
over 12 years ago
Note: This was originally posted on 1st August 2011 at
http://forums.arm.com
I changed CPSR to 0x1D0(which means USR mode )in SVC mode in cortex-a8 platform(freescale imx51), but a perfetch_error occured, the PC hung at 0x0c. Could anybody help me figure this issue out, please?
OR anybody has some code some hwo to enter USR mode from SVC mode?
Best Regards
Jerry
Parents
Christophe Beausoleil
over 12 years ago
Note: This was originally posted on 2nd August 2011 at
http://forums.arm.com
Hi Jerry,
Hum, it is strange, because Cortex-A8 and R4 seem to share the same architecture !? What is your compiler ? (for me, it works with both RVCT 4.0 and CCS v4)
did you also try
msr cpsr, r1
?
cpsr_c is a sub mask for writing only specific bits... maybe not available for cortex-A8
Regards
Christophe
Cancel
Vote up
0
Vote down
Cancel
Reply
Christophe Beausoleil
over 12 years ago
Note: This was originally posted on 2nd August 2011 at
http://forums.arm.com
Hi Jerry,
Hum, it is strange, because Cortex-A8 and R4 seem to share the same architecture !? What is your compiler ? (for me, it works with both RVCT 4.0 and CCS v4)
did you also try
msr cpsr, r1
?
cpsr_c is a sub mask for writing only specific bits... maybe not available for cortex-A8
Regards
Christophe
Cancel
Vote up
0
Vote down
Cancel
Children
No data