mirror of
https://sourceware.org/git/glibc.git
synced 2025-07-28 00:21:52 +03:00
Update.
1998-08-31 Ulrich Drepper <drepper@cygnus.com> * elf/dl-close.c (_dl_close): Update _dl_loaded if the first object on the list is removed. Don't use this code for PIC. Reported by HJ Lu [PR libc/770].
This commit is contained in:
@ -26,9 +26,11 @@ testandset (int *spinlock)
|
||||
{
|
||||
int ret;
|
||||
|
||||
__asm__ __volatile__("xchgl %0, %1"
|
||||
__asm__ __volatile__ (
|
||||
"xchgl %0, %1"
|
||||
: "=r"(ret), "=m"(*spinlock)
|
||||
: "0"(1), "m"(*spinlock));
|
||||
: "0"(1), "m"(*spinlock)
|
||||
: "memory");
|
||||
|
||||
return ret;
|
||||
}
|
||||
|
@ -26,9 +26,11 @@ testandset (int *spinlock)
|
||||
{
|
||||
int ret;
|
||||
|
||||
__asm__ __volatile__("xchgl %0, %1"
|
||||
: "=r"(ret), "=m"(*spinlock)
|
||||
: "0"(1), "m"(*spinlock));
|
||||
__asm__ __volatile__(
|
||||
"xchgl %0, %1"
|
||||
: "=r"(ret), "=m"(*spinlock)
|
||||
: "0"(1), "m"(*spinlock)
|
||||
: "memory");
|
||||
|
||||
return ret;
|
||||
}
|
||||
|
Reference in New Issue
Block a user