Arm Community
Site
Search
User
Site
Search
User
Support forums
Arm Development Studio forum
XN bit support on ARMv7 Cortex A15
Jump...
Cancel
Locked
Locked
Replies
3 replies
Subscribers
118 subscribers
Views
3581 views
Users
0 members are here
Options
Share
More actions
Cancel
Related
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
XN bit support on ARMv7 Cortex A15
taani E
over 12 years ago
Parents
Peter Harris
over 12 years ago
Note: This was originally posted on 11th June 2013 at
http://forums.arm.com
Realize this is an old post, but I hit it with a Google search, so I thought worth posting "probable cause".
I suspect your test case is incorrect. You mention you are pushing executable code onto the stack and sometimes getting a fault, and sometimes not.
ARMv7 does not include hardware memory coherency between I-cache and D-cache, so you are getting a cache coherency problem where you have written the code to the D cache, but the I cache is probably trying to execute the old data rather than your new code. What you are trying to do is invalid without manual cache operations to ensure I and D sides of the memory system see the same data values.
HTH,
Iso
Cancel
Vote up
0
Vote down
Cancel
Reply
Peter Harris
over 12 years ago
Note: This was originally posted on 11th June 2013 at
http://forums.arm.com
Realize this is an old post, but I hit it with a Google search, so I thought worth posting "probable cause".
I suspect your test case is incorrect. You mention you are pushing executable code onto the stack and sometimes getting a fault, and sometimes not.
ARMv7 does not include hardware memory coherency between I-cache and D-cache, so you are getting a cache coherency problem where you have written the code to the D cache, but the I cache is probably trying to execute the old data rather than your new code. What you are trying to do is invalid without manual cache operations to ensure I and D sides of the memory system see the same data values.
HTH,
Iso
Cancel
Vote up
0
Vote down
Cancel
Children
No data