diff options
author | Jonathan Gray <jsg@cvs.openbsd.org> | 2016-04-09 06:03:49 +0000 |
---|---|---|
committer | Jonathan Gray <jsg@cvs.openbsd.org> | 2016-04-09 06:03:49 +0000 |
commit | 6cab0a6f18dd2b04a53858c966b50b1927116dd7 (patch) | |
tree | 1c1dec1cc377aae0cafdf405fa12aa598332527f | |
parent | 4b69fc9eb892b66031489f138a2a720bf52326de (diff) |
replace 0xf57ff05f with dmb sy
spotted by guenther
-rw-r--r-- | lib/librthread/arch/arm/_atomic_lock.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/librthread/arch/arm/_atomic_lock.c b/lib/librthread/arch/arm/_atomic_lock.c index 3c34df37981..9dfc4634c9c 100644 --- a/lib/librthread/arch/arm/_atomic_lock.c +++ b/lib/librthread/arch/arm/_atomic_lock.c @@ -1,4 +1,4 @@ -/* $OpenBSD: _atomic_lock.c,v 1.6 2013/08/28 19:26:05 patrick Exp $ */ +/* $OpenBSD: _atomic_lock.c,v 1.7 2016/04/09 06:03:48 jsg Exp $ */ /* * Copyright (c) 2004 Dale Rahn. All rights reserved. @@ -43,7 +43,7 @@ _atomic_lock(volatile _atomic_lock_t *lock) " strex %2, %3, [%1] \n" " cmp %2, #0 \n" " bne 1b \n" - " .long 0xf57ff05f \n" /* XXX: use dmb */ + " dmb sy \n" : "+r" (old), "+r" (lock), "+r" (scratch) : "r" (_ATOMIC_LOCK_LOCKED)); #else |