From 6cab0a6f18dd2b04a53858c966b50b1927116dd7 Mon Sep 17 00:00:00 2001 From: Jonathan Gray Date: Sat, 9 Apr 2016 06:03:49 +0000 Subject: replace 0xf57ff05f with dmb sy spotted by guenther --- lib/librthread/arch/arm/_atomic_lock.c | 4 ++-- 1 file 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 -- cgit v1.2.3