mirror of https://github.com/acidanthera/audk.git
Add "/" after "lock" and another instruction to improve compatibility.
git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@9167 6f19259b-4bc3-4df7-8a09-765794883524
This commit is contained in:
parent
20b8fc386a
commit
64674889d4
|
@ -1,6 +1,6 @@
|
|||
#------------------------------------------------------------------------------
|
||||
#
|
||||
# Copyright (c) 2006 - 2008, Intel Corporation
|
||||
# Copyright (c) 2006 - 2009, Intel Corporation
|
||||
# All rights reserved. This program and the accompanying materials
|
||||
# are licensed and made available under the terms and conditions of the BSD License
|
||||
# which accompanies this distribution. The full text of the license may be found at
|
||||
|
@ -33,5 +33,5 @@
|
|||
ASM_GLOBAL ASM_PFX(InternalSyncCompareExchange32)
|
||||
ASM_PFX(InternalSyncCompareExchange32):
|
||||
mov %edx, %eax
|
||||
lock cmpxchg %r8d, (%rcx)
|
||||
lock/cmpxchg %r8d, (%rcx)
|
||||
ret
|
||||
|
|
|
@ -34,5 +34,5 @@
|
|||
ASM_GLOBAL ASM_PFX(InternalSyncCompareExchange64)
|
||||
ASM_PFX(InternalSyncCompareExchange64):
|
||||
mov %rdx, %rax
|
||||
lock cmpxchg %r8,(%rcx)
|
||||
lock/cmpxchg %r8,(%rcx)
|
||||
ret
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
#------------------------------------------------------------------------------
|
||||
#
|
||||
# Copyright (c) 2006 - 2008, Intel Corporation
|
||||
# Copyright (c) 2006 - 2009, Intel Corporation
|
||||
# All rights reserved. This program and the accompanying materials
|
||||
# are licensed and made available under the terms and conditions of the BSD License
|
||||
# which accompanies this distribution. The full text of the license may be found at
|
||||
|
@ -31,6 +31,6 @@
|
|||
#------------------------------------------------------------------------------
|
||||
ASM_GLOBAL ASM_PFX(InternalSyncDecrement)
|
||||
ASM_PFX(InternalSyncDecrement):
|
||||
lock decl (%rcx)
|
||||
lock/decl (%rcx)
|
||||
mov (%rcx), %eax
|
||||
ret
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
#------------------------------------------------------------------------------
|
||||
#
|
||||
# Copyright (c) 2006 - 2008, Intel Corporation
|
||||
# Copyright (c) 2006 - 2009, Intel Corporation
|
||||
# All rights reserved. This program and the accompanying materials
|
||||
# are licensed and made available under the terms and conditions of the BSD License
|
||||
# which accompanies this distribution. The full text of the license may be found at
|
||||
|
@ -31,6 +31,6 @@
|
|||
#------------------------------------------------------------------------------
|
||||
ASM_GLOBAL ASM_PFX(InternalSyncIncrement)
|
||||
ASM_PFX(InternalSyncIncrement):
|
||||
lock incl (%rcx)
|
||||
lock/incl (%rcx)
|
||||
mov (%rcx), %eax
|
||||
ret
|
||||
|
|
Loading…
Reference in New Issue