qemu-devel.nongnu.org archive mirror
 help / color / mirror / Atom feed
From: "Loïc Minier" <lool@dooz.org>
To: qemu-devel@nongnu.org
Cc: "Loïc Minier" <lool@dooz.org>
Subject: [Qemu-devel] [PATCH 2/2] Make spinlock_t types volatile
Date: Fri, 19 Feb 2010 22:02:40 +0100	[thread overview]
Message-ID: <1266613360-23069-2-git-send-email-lool@dooz.org> (raw)
In-Reply-To: <1266613360-23069-1-git-send-email-lool@dooz.org>

---
 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

  reply	other threads:[~2010-02-19 21:02 UTC|newest]

Thread overview: 10+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2010-02-19 21:02 [Qemu-devel] [PATCH 1/2] Detect and use GCC atomic builtins for locking Loïc Minier
2010-02-19 21:02 ` Loïc Minier [this message]
2010-02-19 21:42 ` malc
2010-02-20  8:16   ` Loïc Minier
2010-02-20  8:28     ` malc
2010-02-20  9:10       ` Loïc Minier
2010-02-20 17:57         ` malc
2010-02-22 10:25           ` Loïc Minier
2010-02-22 10:47             ` malc
2010-02-28  0:26 ` Paul Brook

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=1266613360-23069-2-git-send-email-lool@dooz.org \
    --to=lool@dooz.org \
    --cc=qemu-devel@nongnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).