[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Qemu-devel] [PATCH 2/2] Make spinlock_t types volatile
From: |
Loïc Minier |
Subject: |
[Qemu-devel] [PATCH 2/2] Make spinlock_t types volatile |
Date: |
Fri, 19 Feb 2010 22:02:40 +0100 |
---
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
- [Qemu-devel] [PATCH 1/2] Detect and use GCC atomic builtins for locking, Loïc Minier, 2010/02/19
- [Qemu-devel] [PATCH 2/2] Make spinlock_t types volatile,
Loïc Minier <=
- Re: [Qemu-devel] [PATCH 1/2] Detect and use GCC atomic builtins for locking, malc, 2010/02/19
- Re: [Qemu-devel] [PATCH 1/2] Detect and use GCC atomic builtins for locking, Loïc Minier, 2010/02/20
- Re: [Qemu-devel] [PATCH 1/2] Detect and use GCC atomic builtins for locking, malc, 2010/02/20
- Re: [Qemu-devel] [PATCH 1/2] Detect and use GCC atomic builtins for locking, Loïc Minier, 2010/02/20
- Re: [Qemu-devel] [PATCH 1/2] Detect and use GCC atomic builtins for locking, malc, 2010/02/20
- Re: [Qemu-devel] [PATCH 1/2] Detect and use GCC atomic builtins for locking, Loïc Minier, 2010/02/22
- Re: [Qemu-devel] [PATCH 1/2] Detect and use GCC atomic builtins for locking, malc, 2010/02/22
Re: [Qemu-devel] [PATCH 1/2] Detect and use GCC atomic builtins for locking, Paul Brook, 2010/02/27