]> git.proxmox.com Git - mirror_edk2.git/blobdiff - MdePkg/Library/BaseSynchronizationLib/SynchronizationGcc.c
Minor grammatical work--mostly adding periods. Items with ONLY period added did...
[mirror_edk2.git] / MdePkg / Library / BaseSynchronizationLib / SynchronizationGcc.c
index 79bd5c4d2dcf6fd34913521b6fff4e57977dc7fe..c59a043c8712c19d86a942996376c7387104a3ea 100644 (file)
@@ -1,11 +1,12 @@
 /** @file\r
   Implementation of synchronization functions.\r
 \r
-  Copyright (c) 2006 - 2008, Intel Corporation<BR>\r
-  All rights reserved. This program and the accompanying materials\r
+  Copyright (c) 2006 - 2010, Intel Corporation. All rights reserved.<BR>\r
+  Portions copyright (c) 2008 - 2009, Apple Inc. All rights reserved.<BR>\r
+  This program and the accompanying materials\r
   are licensed and made available under the terms and conditions of the BSD License\r
   which accompanies this distribution.  The full text of the license may be found at\r
-  http://opensource.org/licenses/bsd-license.php\r
+  http://opensource.org/licenses/bsd-license.php.\r
 \r
   THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS,\r
   WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.\r
@@ -17,7 +18,7 @@
 //\r
 // GCC inline assembly for Read Write Barrier  \r
 //\r
-#define _ReadWriteBarrier() do { asm volatile ("": : : "memory"); } while(0)\r
+#define _ReadWriteBarrier() do { __asm__ __volatile__ ("": : : "memory"); } while(0)\r
 \r
 #define SPIN_LOCK_RELEASED          ((UINTN) 1)\r
 #define SPIN_LOCK_ACQUIRED          ((UINTN) 2)\r
@@ -60,7 +61,7 @@ GetSpinLockProperties (
   @param  SpinLock  A pointer to the spin lock to initialize to the released\r
                     state.\r
 \r
-  @return SpinLock in release state.\r
+  @return SpinLock is in release state.\r
 \r
 **/\r
 SPIN_LOCK *\r
@@ -95,7 +96,7 @@ InitializeSpinLock (
 \r
   @param  SpinLock  A pointer to the spin lock to place in the acquired state.\r
 \r
-  @return SpinLock acquired lock.\r
+  @return SpinLock acquired the lock.\r
 \r
 **/\r
 SPIN_LOCK *\r
@@ -218,7 +219,7 @@ AcquireSpinLockOrFail (
 \r
   @param  SpinLock  A pointer to the spin lock to release.\r
 \r
-  @return SpinLock released lock.\r
+  @return SpinLock released the lock.\r
 \r
 **/\r
 SPIN_LOCK *\r
@@ -304,8 +305,8 @@ InterlockedDecrement (
 \r
   @param  Value         A pointer to the 32-bit value for the compare exchange\r
                         operation.\r
-  @param  CompareValue  32-bit value used in compare operation.\r
-  @param  ExchangeValue 32-bit value used in exchange operation.\r
+  @param  CompareValue  32-bit value used in compare operation.\r
+  @param  ExchangeValue 32-bit value used in exchange operation.\r
 \r
   @return The original *Value before exchange.\r
 \r
@@ -334,8 +335,8 @@ InterlockedCompareExchange32 (
 \r
   @param  Value         A pointer to the 64-bit value for the compare exchange\r
                         operation.\r
-  @param  CompareValue  64-bit value used in compare operation.\r
-  @param  ExchangeValue 64-bit value used in exchange operation.\r
+  @param  CompareValue  A 64-bit value used in a compare operation.\r
+  @param  ExchangeValue A 64-bit value used in an exchange operation.\r
 \r
   @return The original *Value before exchange.\r
 \r
@@ -365,8 +366,8 @@ InterlockedCompareExchange64 (
 \r
   @param  Value         A pointer to the pointer value for the compare exchange\r
                         operation.\r
-  @param  CompareValue  Pointer value used in compare operation.\r
-  @param  ExchangeValue Pointer value used in exchange operation.\r
+  @param  CompareValue  A pointer value used in a compare operation.\r
+  @param  ExchangeValue A pointer value used in an exchange operation.\r
 \r
   @return The original *Value before exchange.\r
 **/\r