aboutsummaryrefslogtreecommitdiff
path: root/libgcc
diff options
context:
space:
mode:
Diffstat (limited to 'libgcc')
-rw-r--r--libgcc/ChangeLog9
-rw-r--r--libgcc/config/tilepro/atomic.h6
2 files changed, 13 insertions, 2 deletions
diff --git a/libgcc/ChangeLog b/libgcc/ChangeLog
index db5616a..8f758e3 100644
--- a/libgcc/ChangeLog
+++ b/libgcc/ChangeLog
@@ -1,3 +1,12 @@
+2016-06-28 Walter Lee <walt@tilera.com>
+
+ * config/tilepro/atomic.h: Do not include arch/spr_def.h and
+ asm/unistd.h.
+ (SPR_CMPEXCH_VALUE): Define for tilegx.
+ (__NR_FAST_cmpxchg): Define for tilepro.
+ (__NR_FAST_atomic_update): Define for tilepro.
+ (__NR_FAST_cmpxchg64): Define for tilepro.
+
2016-06-23 Jakub Sejdak <jakub.sejdak@phoesys.com>
* config.host: Add suport for arm*-*-phoenix* targets.
diff --git a/libgcc/config/tilepro/atomic.h b/libgcc/config/tilepro/atomic.h
index 78fa9a9..6abe6e1 100644
--- a/libgcc/config/tilepro/atomic.h
+++ b/libgcc/config/tilepro/atomic.h
@@ -93,9 +93,11 @@
#endif
#ifdef __tilegx__
-#include <arch/spr_def.h>
+#define SPR_CMPEXCH_VALUE 0x2780
#else
-#include <asm/unistd.h>
+#define __NR_FAST_cmpxchg -1
+#define __NR_FAST_atomic_update -2
+#define __NR_FAST_cmpxchg64 -3
#endif