»
Quick Links
Page 1 of 1
Why ARM do not do page table walk? ARM don't do page table walk in other security status
#1
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.
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.
#2
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.
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.
Share this topic:
Page 1 of 1















