public inbox for devel@edk2.groups.io
 help / color / mirror / Atom feed
* [Patch 0/2] MdePkg/BaseSynchronizationLib: Add volatile
@ 2016-11-17  4:53 Michael Kinney
  2016-11-17  4:53 ` [Patch 1/2] MdePkg/Include: Add volatile to SynchronizationLib parameters Michael Kinney
  2016-11-17  4:53 ` [Patch 2/2] MdePkg/BaseSynchronizationLib: Add volatile Interlocked*() APIs Michael Kinney
  0 siblings, 2 replies; 8+ messages in thread
From: Michael Kinney @ 2016-11-17  4:53 UTC (permalink / raw)
  To: edk2-devel

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



^ permalink raw reply	[flat|nested] 8+ messages in thread

end of thread, other threads:[~2016-11-17 16:07 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2016-11-17  4:53 [Patch 0/2] MdePkg/BaseSynchronizationLib: Add volatile Michael Kinney
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

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox