diff options
author | Christopher Faylor <me@cgf.cx> | 2004-06-03 21:29:43 +0000 |
---|---|---|
committer | Christopher Faylor <me@cgf.cx> | 2004-06-03 21:29:43 +0000 |
commit | 604ca5fa1726b9d42527e0e0e4b767858a646c67 (patch) | |
tree | dedd370fa2dd713d16788f17674b388389d8aac0 /winsup/cygwin/winbase.h | |
parent | ee94df3eccde219778b98223d001ed244b3d3891 (diff) | |
download | cygnal-604ca5fa1726b9d42527e0e0e4b767858a646c67.tar.gz cygnal-604ca5fa1726b9d42527e0e0e4b767858a646c67.tar.bz2 cygnal-604ca5fa1726b9d42527e0e0e4b767858a646c67.zip |
* winbase.h (ilockincr): More changes from the inexplicable world of gcc asm
magic.
(ilockdecr): Ditto.
Diffstat (limited to 'winsup/cygwin/winbase.h')
-rw-r--r-- | winsup/cygwin/winbase.h | 12 |
1 files changed, 10 insertions, 2 deletions
diff --git a/winsup/cygwin/winbase.h b/winsup/cygwin/winbase.h index 0411afd7b..6f9228efc 100644 --- a/winsup/cygwin/winbase.h +++ b/winsup/cygwin/winbase.h @@ -1,3 +1,11 @@ +/* winbase.h + + Copyright 2002, 2003, 2004 Red Hat, Inc. + +This software is a copyrighted work licensed under the terms of the +Cygwin license. Please consult the file "CYGWIN_LICENSE" for +details. */ + #include_next "winbase.h" #ifndef _WINBASE2_H @@ -9,7 +17,7 @@ ilockincr (long *m) register int __res; __asm__ __volatile__ ("\n\ movl $1,%0\n\ - lock xadd %0,%2\n\ + lock xadd %0,%1\n\ inc %0\n\ ": "=a" (__res), "=m" (*m): "m" (m): "cc"); return __res; @@ -21,7 +29,7 @@ ilockdecr (long *m) register int __res; __asm__ __volatile__ ("\n\ movl $0xffffffff,%0\n\ - lock xadd %0,%2\n\ + lock xadd %0,%1\n\ dec %0\n\ ": "=a" (__res), "=m" (*m): "m" (m): "cc"); return __res; |