[rtems commit] sparc: Add comment
Sebastian Huber
sebh at rtems.org
Thu Sep 18 13:24:53 UTC 2014
Module: rtems
Branch: master
Commit: 386d8b52356a6a12346b7390c575f4b45935253a
Changeset: http://git.rtems.org/rtems/commit/?id=386d8b52356a6a12346b7390c575f4b45935253a
Author: Sebastian Huber <sebastian.huber at embedded-brains.de>
Date: Thu Sep 18 15:33:33 2014 +0200
sparc: Add comment
---
cpukit/score/cpu/sparc/sparcv8-atomic.c | 5 +++++
1 files changed, 5 insertions(+), 0 deletions(-)
diff --git a/cpukit/score/cpu/sparc/sparcv8-atomic.c b/cpukit/score/cpu/sparc/sparcv8-atomic.c
index 0920930..b1c4f23 100644
--- a/cpukit/score/cpu/sparc/sparcv8-atomic.c
+++ b/cpukit/score/cpu/sparc/sparcv8-atomic.c
@@ -83,6 +83,11 @@ uint8_t __atomic_exchange_1( uint8_t *mem, uint8_t val, int model )
return prev;
}
+/*
+ * In order to get rid of the warning "conflicting types for built-in function
+ * '__atomic_compare_exchange_4' [enabled by default]", you must port libatomic
+ * to SPARC/RTEMS. The libatomic is provided by GCC.
+ */
uint32_t __atomic_exchange_4( uint32_t *mem, uint32_t val, int model )
{
uint32_t prev;
More information about the vc
mailing list