Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(280)

Unified Diff: fusl/arch/arm/atomic_arch.h

Issue 1689833004: [fusl] Update fusl (Closed) Base URL: git@github.com:domokit/mojo.git@master
Patch Set: remove stray space Created 4 years, 10 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « fusl/arch/aarch64/bits/termios.h ('k') | fusl/arch/arm/bits/errno.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: fusl/arch/arm/atomic_arch.h
diff --git a/fusl/arch/arm/atomic_arch.h b/fusl/arch/arm/atomic_arch.h
index a74cf3b70c0940e26eb0ef200f5b881aa85d4c3f..706fa1f22ce7021b759ae879ae7e9d9665e64888 100644
--- a/fusl/arch/arm/atomic_arch.h
+++ b/fusl/arch/arm/atomic_arch.h
@@ -16,7 +16,7 @@ static inline int a_ll(volatile int *p)
static inline int a_sc(volatile int *p, int v)
{
int r;
- __asm__ __volatile__ ("strex %0,%1,%2" : "=&r"(r) : "r"(v), "Q"(*p) : "memory");
+ __asm__ __volatile__ ("strex %0,%2,%1" : "=&r"(r), "=Q"(*p) : "r"(v) : "memory");
return !r;
}
@@ -66,9 +66,11 @@ static inline void a_barrier()
#define a_crash a_crash
static inline void a_crash()
{
- __asm__ __volatile__(".byte 0xf1, 0xde"
+ __asm__ __volatile__(
#ifndef __thumb__
- ", 0xfd, 0xe7"
+ ".word 0xe7f000f0"
+#else
+ ".short 0xdeff"
#endif
: : : "memory");
}
« no previous file with comments | « fusl/arch/aarch64/bits/termios.h ('k') | fusl/arch/arm/bits/errno.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698