public inbox for devel@edk2.groups.io
 help / color / mirror / Atom feed
From: Michael Kinney <michael.d.kinney@intel.com>
To: edk2-devel@lists.01.org
Subject: [Patch 0/2] MdePkg/BaseSynchronizationLib: Add volatile
Date: Wed, 16 Nov 2016 20:53:42 -0800	[thread overview]
Message-ID: <1479358424-17096-1-git-send-email-michael.d.kinney@intel.com> (raw)

Update BaseSynchronizationLib class and instance to use volatile
parameters in Interlocked*() functions and internal worker functions
to be consistent with SpinLock functions and avoid conversion of
a volatile pointer to a non-volatile pointer type.

Michael Kinney (2):
  MdePkg/Include: Add volatile to SynchronizationLib parameters
  MdePkg/BaseSynchronizationLib: Add volatile Interlocked*() APIs

 MdePkg/Include/Library/SynchronizationLib.h            | 14 +++++++-------
 .../Ia32/InterlockedCompareExchange16.asm              |  4 ++--
 .../Ia32/InterlockedCompareExchange16.c                |  4 ++--
 .../Ia32/InterlockedCompareExchange16.nasm             |  4 ++--
 .../Ia32/InterlockedCompareExchange32.asm              |  4 ++--
 .../Ia32/InterlockedCompareExchange32.c                |  4 ++--
 .../Ia32/InterlockedCompareExchange32.nasm             |  4 ++--
 .../Ia32/InterlockedCompareExchange64.asm              |  4 ++--
 .../Ia32/InterlockedCompareExchange64.c                |  4 ++--
 .../Ia32/InterlockedCompareExchange64.nasm             |  4 ++--
 .../Ia32/InterlockedDecrement.asm                      |  2 +-
 .../BaseSynchronizationLib/Ia32/InterlockedDecrement.c |  4 ++--
 .../Ia32/InterlockedDecrement.nasm                     |  4 ++--
 .../Ia32/InterlockedIncrement.asm                      |  4 ++--
 .../BaseSynchronizationLib/Ia32/InterlockedIncrement.c |  4 ++--
 .../Ia32/InterlockedIncrement.nasm                     |  4 ++--
 .../Library/BaseSynchronizationLib/Synchronization.c   | 18 +++++++++---------
 .../BaseSynchronizationLib/SynchronizationGcc.c        | 18 +++++++++---------
 .../BaseSynchronizationLib/SynchronizationMsc.c        | 18 +++++++++---------
 .../X64/InterlockedCompareExchange16.asm               |  6 +++---
 .../X64/InterlockedCompareExchange16.c                 |  4 ++--
 .../X64/InterlockedCompareExchange16.nasm              |  6 +++---
 .../X64/InterlockedCompareExchange32.asm               |  6 +++---
 .../X64/InterlockedCompareExchange32.c                 |  4 ++--
 .../X64/InterlockedCompareExchange32.nasm              |  6 +++---
 .../X64/InterlockedCompareExchange64.asm               |  6 +++---
 .../X64/InterlockedCompareExchange64.c                 |  4 ++--
 .../X64/InterlockedCompareExchange64.nasm              |  4 ++--
 .../X64/InterlockedDecrement.asm                       |  6 +++---
 .../BaseSynchronizationLib/X64/InterlockedDecrement.c  |  6 +++---
 .../X64/InterlockedDecrement.nasm                      |  6 +++---
 .../X64/InterlockedIncrement.asm                       |  6 +++---
 .../BaseSynchronizationLib/X64/InterlockedIncrement.c  |  6 +++---
 .../X64/InterlockedIncrement.nasm                      |  6 +++---
 34 files changed, 104 insertions(+), 104 deletions(-)

-- 
2.6.3.windows.1



             reply	other threads:[~2016-11-17  4:54 UTC|newest]

Thread overview: 8+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2016-11-17  4:53 Michael Kinney [this message]
2016-11-17  4:53 ` [Patch 1/2] MdePkg/Include: Add volatile to SynchronizationLib parameters Michael Kinney
2016-11-17  8:51   ` Laszlo Ersek
2016-11-17  4:53 ` [Patch 2/2] MdePkg/BaseSynchronizationLib: Add volatile Interlocked*() APIs Michael Kinney
2016-11-17  9:21   ` Laszlo Ersek
2016-11-17 15:55     ` Kinney, Michael D
2016-11-17 16:02       ` Laszlo Ersek
2016-11-17 16:08         ` Kinney, Michael D

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-list 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=1479358424-17096-1-git-send-email-michael.d.kinney@intel.com \
    --to=devel@edk2.groups.io \
    /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