Page Menu
Home
FreeBSD
Search
Configure Global Search
Log In
Files
F157147466
D3355.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Flag For Later
Award Token
Size
666 B
Referenced Files
None
Subscribers
None
D3355.diff
View Options
Index: head/sys/arm/arm/stdatomic.c
===================================================================
--- head/sys/arm/arm/stdatomic.c
+++ head/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
Tue, May 19, 6:46 PM (19 h, 26 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
33325313
Default Alt Text
D3355.diff (666 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