diff options
author | qhuang8 <qhuang8@6f19259b-4bc3-4df7-8a09-765794883524> | 2010-01-27 03:25:28 +0000 |
---|---|---|
committer | qhuang8 <qhuang8@6f19259b-4bc3-4df7-8a09-765794883524> | 2010-01-27 03:25:28 +0000 |
commit | ea6898b902464c0a0c32b49543386b962a64032c (patch) | |
tree | 7144624c7b97c673cae392ed6abcaecb700bfb53 /MdePkg/Library/BaseSynchronizationLib/Arm | |
parent | bf586ab919aca12f47f1d48f52c2ed5c05321a66 (diff) | |
download | edk2-ea6898b902464c0a0c32b49543386b962a64032c.zip edk2-ea6898b902464c0a0c32b49543386b962a64032c.tar.gz edk2-ea6898b902464c0a0c32b49543386b962a64032c.tar.bz2 |
Clean up MdePkg source to correct some coding style issues, etc.
git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@9832 6f19259b-4bc3-4df7-8a09-765794883524
Diffstat (limited to 'MdePkg/Library/BaseSynchronizationLib/Arm')
-rw-r--r-- | MdePkg/Library/BaseSynchronizationLib/Arm/Synchronization.c | 19 |
1 files changed, 18 insertions, 1 deletions
diff --git a/MdePkg/Library/BaseSynchronizationLib/Arm/Synchronization.c b/MdePkg/Library/BaseSynchronizationLib/Arm/Synchronization.c index e046e1b..56f4d3c 100644 --- a/MdePkg/Library/BaseSynchronizationLib/Arm/Synchronization.c +++ b/MdePkg/Library/BaseSynchronizationLib/Arm/Synchronization.c @@ -1,7 +1,7 @@ /** @file
Implementation of synchronization functions. Still needs to be ported
- Copyright (c) 2006 - 2009, Intel Corporation<BR>
+ Copyright (c) 2006 - 2010, Intel Corporation<BR>
Portions copyright (c) 2008-2009 Apple Inc. All rights reserved.<BR>
All rights reserved. This program and the accompanying materials
are licensed and made available under the terms and conditions of the BSD License
@@ -13,6 +13,23 @@ **/
+/**
+ Performs an atomic compare exchange operation on a 32-bit unsigned integer.
+
+ Performs an atomic compare exchange operation on the 32-bit unsigned integer
+ specified by Value. If Value is equal to CompareValue, then Value is set to
+ ExchangeValue and CompareValue is returned. If Value is not equal to CompareValue,
+ then Value is returned. The compare exchange operation must be performed using
+ MP safe mechanisms.
+
+ @param Value A pointer to the 32-bit value for the compare exchange
+ operation.
+ @param CompareValue 32-bit value used in compare operation.
+ @param ExchangeValue 32-bit value used in exchange operation.
+
+ @return The original *Value before exchange.
+
+**/
UINT32
EFIAPI
InternalSyncCompareExchange32 (
|