Arm Community
Site
Search
User
Site
Search
User
Support forums
Arm Development Studio forum
Read non-secure DFAR from secure world
Jump...
Cancel
Locked
Locked
Replies
2 replies
Subscribers
119 subscribers
Views
2713 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
Read non-secure DFAR from secure world
Jitesh Shah
over 12 years ago
Note: This was originally posted on 7th June 2012 at
http://forums.arm.com
Hi,
I understand that the DFAR (Data Fault Address Register) is banked between the secure and the non-secure world.
I am writing a software where I need to access the DFAR of the non-secure world from the secure world (monitor mode). Is there a way to do that without going back to the non-secure world?
Parents
Martin Weidmann
over 12 years ago
Note: This was originally posted on 7th June 2012 at
http://forums.arm.com
If its the same as the other banked registers, you should just have to set the SCR.NS bit.
The SCR.NS bit controls which banked copy (secure/non-secure) of a CP15 register you access. Monitor mode is always in the Secure world, so you can toggle the SCR.NS bit without actually changing security state. Meaning that Monitor mode is the only mode that can access both banked copies of a CP15 register.
Cancel
Vote up
0
Vote down
Cancel
Reply
Martin Weidmann
over 12 years ago
Note: This was originally posted on 7th June 2012 at
http://forums.arm.com
If its the same as the other banked registers, you should just have to set the SCR.NS bit.
The SCR.NS bit controls which banked copy (secure/non-secure) of a CP15 register you access. Monitor mode is always in the Secure world, so you can toggle the SCR.NS bit without actually changing security state. Meaning that Monitor mode is the only mode that can access both banked copies of a CP15 register.
Cancel
Vote up
0
Vote down
Cancel
Children
No data