mirror of
https://github.com/mozilla/gecko-dev.git
synced 2025-02-26 20:30:41 +00:00
Bugzilla Bug 322287: the "lock" prefix is not required for the x86 "xchg"
instruction. r=mark.mentovai. Modified files: os2emx.s os2vacpp.asm os_Linux_x86.s os_Linux_x86_64.s os_SunOS_x86.s os_SunOS_x86_64.s ntmisc.c
This commit is contained in:
parent
7684d5f656
commit
a42a273963
@ -89,7 +89,6 @@ __PR_MD_ATOMIC_DECREMENT:
|
||||
__PR_MD_ATOMIC_SET:
|
||||
movl 4(%esp), %ecx
|
||||
movl 8(%esp), %eax
|
||||
lock
|
||||
xchgl %eax, (%ecx)
|
||||
ret
|
||||
|
||||
|
@ -221,7 +221,7 @@ SemReleasex86 ENDP
|
||||
;;;---------------------------------------------------------------------
|
||||
ALIGN 10H
|
||||
_PR_MD_ATOMIC_SET proc
|
||||
lock xchg dword ptr [eax],edx
|
||||
xchg dword ptr [eax],edx
|
||||
mov eax, edx;
|
||||
ret
|
||||
_PR_MD_ATOMIC_SET endp
|
||||
|
@ -89,7 +89,6 @@ _PR_x86_AtomicDecrement:
|
||||
_PR_x86_AtomicSet:
|
||||
movl 4(%esp), %ecx
|
||||
movl 8(%esp), %eax
|
||||
lock
|
||||
xchgl %eax, (%ecx)
|
||||
ret
|
||||
|
||||
|
@ -72,7 +72,6 @@ _PR_x86_64_AtomicDecrement:
|
||||
.align 4
|
||||
_PR_x86_64_AtomicSet:
|
||||
movl %esi, %eax
|
||||
lock
|
||||
xchgl %eax, (%rdi)
|
||||
ret
|
||||
|
||||
|
@ -133,7 +133,6 @@ _MD_AtomicDecrement:
|
||||
_MD_AtomicSet:
|
||||
movl 4(%esp), %ecx
|
||||
movl 8(%esp), %eax
|
||||
lock
|
||||
xchgl %eax, (%ecx)
|
||||
ret
|
||||
|
||||
|
@ -72,7 +72,6 @@ _MD_AtomicDecrement:
|
||||
.align 4
|
||||
_MD_AtomicSet:
|
||||
movl %esi, %eax
|
||||
lock
|
||||
xchgl %eax, (%rdi)
|
||||
ret
|
||||
|
||||
|
@ -774,7 +774,7 @@ PR_StackPush(PRStack *stack, PRStackElem *stack_elem)
|
||||
if (*tos == (void *) -1)
|
||||
goto retry;
|
||||
|
||||
__asm__("lock xchg %0,%1"
|
||||
__asm__("xchg %0,%1"
|
||||
: "=r" (tmp), "=m"(*tos)
|
||||
: "0" (-1), "m"(*tos));
|
||||
|
||||
@ -815,7 +815,7 @@ PR_StackPop(PRStack *stack)
|
||||
if (*tos == (void *) -1)
|
||||
goto retry;
|
||||
|
||||
__asm__("lock xchg %0,%1"
|
||||
__asm__("xchg %0,%1"
|
||||
: "=r" (tmp), "=m"(*tos)
|
||||
: "0" (-1), "m"(*tos));
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user