Page Menu
Home
FreeBSD
Search
Configure Global Search
Log In
Files
F137102893
D3355.id7821.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Flag For Later
Award Token
Size
651 B
Referenced Files
None
Subscribers
None
D3355.id7821.diff
View Options
Index: sys/arm/arm/stdatomic.c
===================================================================
--- sys/arm/arm/stdatomic.c
+++ sys/arm/arm/stdatomic.c
@@ -32,6 +32,7 @@
#include <sys/types.h>
#include <machine/acle-compat.h>
+#include <machine/atomic.h>
#include <machine/cpufunc.h>
#include <machine/sysarch.h>
@@ -67,19 +68,12 @@
__asm volatile ("" : : : "memory");
}
-#elif __ARM_ARCH >= 7
-static inline void
-do_sync(void)
-{
-
- __asm volatile ("dmb" : : : "memory");
-}
#elif __ARM_ARCH >= 6
static inline void
do_sync(void)
{
- __asm volatile ("mcr p15, 0, %0, c7, c10, 5" : : "r" (0) : "memory");
+ dmb();
}
#endif
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Sat, Nov 22, 3:46 AM (10 h, 28 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
25896955
Default Alt Text
D3355.id7821.diff (651 B)
Attached To
Mode
D3355: Use dmb() macro instead of having separate implementations of do_sync
Attached
Detach File
Event Timeline
Log In to Comment