From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1NiZzx-0000WK-LD for qemu-devel@nongnu.org; Fri, 19 Feb 2010 16:02:53 -0500 Received: from [199.232.76.173] (port=41348 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1NiZzw-0000Vf-Fp for qemu-devel@nongnu.org; Fri, 19 Feb 2010 16:02:52 -0500 Received: from Debian-exim by monty-python.gnu.org with spam-scanned (Exim 4.60) (envelope-from ) id 1NiZzu-0004wB-Ji for qemu-devel@nongnu.org; Fri, 19 Feb 2010 16:02:52 -0500 Received: from duck.dooz.org ([194.146.227.125]:51868) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1NiZzt-0004vY-Sc for qemu-devel@nongnu.org; Fri, 19 Feb 2010 16:02:50 -0500 From: =?UTF-8?q?Lo=C3=AFc=20Minier?= Date: Fri, 19 Feb 2010 22:02:40 +0100 Message-Id: <1266613360-23069-2-git-send-email-lool@dooz.org> In-Reply-To: <1266613360-23069-1-git-send-email-lool@dooz.org> References: <1266613360-23069-1-git-send-email-lool@dooz.org> Subject: [Qemu-devel] [PATCH 2/2] Make spinlock_t types volatile List-Id: qemu-devel.nongnu.org List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: qemu-devel@nongnu.org Cc: =?UTF-8?q?Lo=C3=AFc=20Minier?= --- qemu-lock.h | 6 +++--- 1 files changed, 3 insertions(+), 3 deletions(-) diff --git a/qemu-lock.h b/qemu-lock.h index 5c8eb34..23e3442 100644 --- a/qemu-lock.h +++ b/qemu-lock.h @@ -34,7 +34,7 @@ #else #ifdef CONFIG_GCC_ATOMIC_BUILTINS -typedef int spinlock_t; +typedef volatile int spinlock_t; #define SPIN_LOCK_UNLOCKED 0 @@ -43,7 +43,7 @@ typedef int spinlock_t; #if defined(__hppa__) -typedef int spinlock_t[4]; +typedef volatile int spinlock_t[4]; #define SPIN_LOCK_UNLOCKED { 1, 1, 1, 1 } @@ -54,7 +54,7 @@ static inline void resetlock (spinlock_t *p) #else -typedef int spinlock_t; +typedef volatile int spinlock_t; #define SPIN_LOCK_UNLOCKED 0 -- 1.7.0