* Source/NSObject.m (GSAtomicIncrement, GSAtomicDecrement):

MIPS64 specific adjustment of atomic functions for mips.
Patch by Sebastian Reitenbach <sebastia@l00-bugdead-prods.de>.


git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@31841 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
Fred Kiefer 2011-01-06 12:48:29 +00:00
parent 03c2eaaedb
commit a4a57e144f
2 changed files with 12 additions and 2 deletions

View file

@ -1,3 +1,9 @@
2011-01-06 Fred Kiefer <FredKiefer@gmx.de>
* Source/NSObject.m (GSAtomicIncrement, GSAtomicDecrement): MIPS64
specific adjustment of atomic functions for mips.
Patch by Sebastian Reitenbach <sebastia@l00-bugdead-prods.de>.
2011-01-01 Stefan Bidigaray <stefanbidi@gmail.com>
* Headers/Foundation/NSCalendar.h:
@ -1318,7 +1324,7 @@
2010-05-30 Richard Frith-Macdonald <rfm@gnu.org>
* Source/NSObject.h:
Floating point fix for openbsd suggested by Sebastian Reitenbach
Floating point fix for openbsd suggested by Sebastian Reitenbach
2010-05-30 Wolfgang Lux <wolfgang.lux@gmail.com>
@ -1616,7 +1622,7 @@
2010-03-23 Riccardo Mottola <rmottola@users.sf.net>
* Source/NSObject.m: Atomic increment and decrement functions for mips
2010-03-19 Richard Frith-Macdonald <rfm@gnu.org>
* config/config.reuseaddr.c:

View file

@ -321,7 +321,9 @@ GSAtomicIncrement(gsatomic_t X)
int tmp;
__asm__ __volatile__ (
#if !defined(__mips64__)
" .set mips2 \n"
#endif
"0: ll %0, %1 \n"
" addiu %0, 1 \n"
" sc %0, %1 \n"
@ -336,7 +338,9 @@ GSAtomicDecrement(gsatomic_t X)
int tmp;
__asm__ __volatile__ (
#if !defined(__mips64__)
" .set mips2 \n"
#endif
"0: ll %0, %1 \n"
" addiu %0, -1 \n"
" sc %0, %1 \n"