diff options
author | Patrick Williams <iawillia@us.ibm.com> | 2011-04-19 07:17:13 -0500 |
---|---|---|
committer | Andrew J. Geissler <andrewg@us.ibm.com> | 2011-04-21 16:28:19 -0500 |
commit | a3632ffdd67e905b45a2cc9b4b6035957e22ed9e (patch) | |
tree | 1e659100f37451e98b4314991ffa2653c7a22905 | |
parent | b4fd596e2c7bc6bfd884dcff9bf1d98b6ea4d153 (diff) | |
download | talos-hostboot-a3632ffdd67e905b45a2cc9b4b6035957e22ed9e.tar.gz talos-hostboot-a3632ffdd67e905b45a2cc9b4b6035957e22ed9e.zip |
Fix weak-consistency bug in spinlocks.
Change-Id: I7ab4d17d0706a8ca149adf2ebd58f7b981f8ace6
Reviewed-on: http://gfwr801.rchland.ibm.com:8080/gerrit/5
Tested-by: Jenkins Server
Reviewed-by: Andrew J. Geissler <andrewg@us.ibm.com>
-rw-r--r-- | src/kernel/spinlock.C | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/kernel/spinlock.C b/src/kernel/spinlock.C index 5c67d8ad9..ab86e481e 100644 --- a/src/kernel/spinlock.C +++ b/src/kernel/spinlock.C @@ -13,6 +13,7 @@ void Spinlock::lock() while(iv_ready != reservation); setThreadPriorityHigh(); } + isync(); } void Spinlock::unlock() |