Login

Important information

This site uses cookies to store information on your computer. By continuing to use our site, you consent to our cookies.

ARM websites use two types of cookie: (1) those that enable the site to function and perform as required; and (2) analytical cookies which anonymously track visitors only while using the site. If you are not happy with this use of these cookies please review our Privacy Policy to learn how they can be disabled. By disabling cookies some features of the site will not work.

ARM Community: Why ARM do not do page table walk? - ARM Community

Jump to content

Page 1 of 1
  • You cannot start a new topic
  • You cannot reply to this topic

Why ARM do not do page table walk? ARM don't do page table walk in other security status Rate Topic: ***-- 1 Votes

#1 User is offline   something 

  • Member
  • Pip
  • Group: Members
  • Posts: 7
  • Joined: 16-November 11

Posted 17 December 2011 - 02:21 PM

Dear Sirs,

Now I want to do VA to PA translation operation to get the PA in other security status.
But I thought the ARM do not do the page table walk while the translation table entry is not in the TLB.

Code:
MCR p15,0,r0,c7,c8, 4
MRC p15,0,r1,c7,c4,0

And the r1 returns Error Status and not a PA.

The VA is actual in the translation table because I can get the right PA if I parse the translation table manually in now security status.

Or I do it with the wrong method?

Thank you.
1

#2 User is offline   isogen74 

  • Super Contributor
  • PipPipPipPip
  • Group: Members
  • Posts: 1097
  • Joined: 20-March 07

Posted 18 December 2011 - 11:11 AM

The key part of this instruction is that is performs the VA to PA translation using the non-secure world page tables, not the secure world page tables. It doesn't matter if the VA to PA mapping exists in the current world (you are running secure, as this option is only available the secure world), it must exist in the "other world".

The other possibility is that you have a stale TLB entry which you have failed to invalidate at some point when modifying the page tables.
When optimizing software, consider that the quickest code to run is the bit you removed from the call path.
1

Share this topic:


Page 1 of 1
  • You cannot start a new topic
  • You cannot reply to this topic