Arm Community
Site
Search
User
Site
Search
User
Support forums
Arm Development Studio forum
Disabling D-Cache
Jump...
Cancel
Locked
Locked
Replies
2 replies
Subscribers
118 subscribers
Views
2735 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
Disabling D-Cache
jigarjshah jigarjshah
over 12 years ago
Note: This was originally posted on 3rd August 2009 at
http://forums.arm.com
I use the following instructions
void disable_cache()
{
asm(" MRC P15, #0, R0, C1, C0, #0 ");
asm(" MOV R2, #4 ");
asm(" BIC R0, R0, R2 ");
asm(" MCR P15, #0, R0, C1, C0, #0 ");
}
On reading the value of the cp15 register again using
asm(" MRC P15, #0, R0, C1, C0, #0 ");
R0 & 4 returns true indicating D-cache is still enabled.
Are the cp15 registers locked or protected? If yes then what should be done to disable D-cache
Parents
Peter Harris
over 12 years ago
Note: This was originally posted on 3rd August 2009 at
http://forums.arm.com
What processor are you using, are what mode is your software running in? (user / sys / svc, etc).
Cancel
Vote up
0
Vote down
Cancel
Reply
Peter Harris
over 12 years ago
Note: This was originally posted on 3rd August 2009 at
http://forums.arm.com
What processor are you using, are what mode is your software running in? (user / sys / svc, etc).
Cancel
Vote up
0
Vote down
Cancel
Children
No data