]> git.proxmox.com Git - mirror_edk2.git/blame - EdkCompatibilityPkg/Foundation/Library/EdkIIGlueLib/Library/BaseLib/Ipf/InterlockedCompareExchange64.s
Add in the 1st version of ECP.
[mirror_edk2.git] / EdkCompatibilityPkg / Foundation / Library / EdkIIGlueLib / Library / BaseLib / Ipf / InterlockedCompareExchange64.s
CommitLineData
3eb9473e 1/// Copyright (c) 2004, Intel Corporation \r
2/// All rights reserved. This program and the accompanying materials \r
3/// are licensed and made available under the terms and conditions of the BSD License \r
4/// which accompanies this distribution. The full text of the license may be found at \r
5/// http://opensource.org/licenses/bsd-license.php \r
6/// \r
7/// THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS, \r
8/// WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED. \r
9///\r
10/// Module Name:\r
11///\r
12/// InterlockedCompareExchange64.s\r
13///\r
14/// Abstract:\r
15///\r
16///\r
17\r
18.auto\r
19.text\r
20\r
21.proc InternalSyncCompareExchange64\r
22.type InternalSyncCompareExchange64, @function\r
23InternalSyncCompareExchange64::\r
24 mov ar.ccv = r33\r
25 cmpxchg8.rel r8 = [r32], r34\r
26 mf\r
27 br.ret.sptk.many b0\r
28.endp InternalSyncCompareExchange64