mirror of
https://sourceware.org/git/glibc.git
synced 2024-11-10 07:10:06 +00:00
(testandset): Adjust for prototype change.
This commit is contained in:
parent
b6e2071240
commit
79f757a42a
@ -31,10 +31,10 @@ register char * stack_pointer __asm__ ("%esp");
|
||||
|
||||
|
||||
/* Spinlock implementation; required. */
|
||||
PT_EI int
|
||||
PT_EI long int
|
||||
testandset (int *spinlock)
|
||||
{
|
||||
int ret;
|
||||
long int ret;
|
||||
|
||||
__asm__ __volatile__ (
|
||||
"xchgl %0, %1"
|
||||
|
@ -1,6 +1,6 @@
|
||||
/* Machine-dependent pthreads configuration and inline functions.
|
||||
i386 version.
|
||||
Copyright (C) 1996, 1997, 1998, 1999 Free Software Foundation, Inc.
|
||||
Copyright (C) 1996, 1997, 1998, 1999, 2000 Free Software Foundation, Inc.
|
||||
This file is part of the GNU C Library.
|
||||
Contributed by Richard Henderson <rth@tamu.edu>.
|
||||
|
||||
@ -30,10 +30,10 @@ register char * stack_pointer __asm__ ("%esp");
|
||||
|
||||
|
||||
/* Spinlock implementation; required. */
|
||||
PT_EI int
|
||||
PT_EI long int
|
||||
testandset (int *spinlock)
|
||||
{
|
||||
int ret;
|
||||
long int ret;
|
||||
|
||||
__asm__ __volatile__(
|
||||
"xchgl %0, %1"
|
||||
|
Loading…
Reference in New Issue
Block a user