Arm Community
Site
Search
User
Site
Search
User
Support forums
Arm Development Studio forum
memory barrier
Jump...
Cancel
Locked
Locked
Replies
4 replies
Subscribers
118 subscribers
Views
3451 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
memory barrier
mosfet mosfet
over 12 years ago
Note: This was originally posted on 18th January 2010 at
http://forums.arm.com
Hi,
On x86/win architecture there is a function called MemoryBarrier that prevents the CPU from re-ordering read/write operations.
Is there something like that on arm architecture ?
// x86
FORCEINLINE VOID
MemoryBarrier (VOID)
{
LONG Barrier;
__asm {
xchg Barrier, eax
}
}
Parents
guestposter guestposter
over 12 years ago
Note: This was originally posted on 19th January 2010 at
http://forums.arm.com
Older generations of ARM processors (e.g. ARM7TDMI) does not have memory barrier instructions.
Newer ARM processors (all Cortex-A, Cortex-R and Cortex-M processors) have memory barrier instructions:
http://www.keil.com/support/man/docs/armasm/
Cancel
Vote up
0
Vote down
Cancel
Reply
guestposter guestposter
over 12 years ago
Note: This was originally posted on 19th January 2010 at
http://forums.arm.com
Older generations of ARM processors (e.g. ARM7TDMI) does not have memory barrier instructions.
Newer ARM processors (all Cortex-A, Cortex-R and Cortex-M processors) have memory barrier instructions:
http://www.keil.com/support/man/docs/armasm/
Cancel
Vote up
0
Vote down
Cancel
Children
No data