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

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
  • 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.
Reply
  • 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.
Children
No data