mirror of
https://github.com/tobast/libunwind-eh_elf.git
synced 2024-11-22 23:47:39 +01:00
Drop include of <ia64intrin.h>.
(unw_flush_cache): Replace __sync_fetch_and_add() with fetch_and_add1(). (Logical change 1.123)
This commit is contained in:
parent
9a2388db17
commit
a0b454581a
1 changed files with 2 additions and 6 deletions
|
@ -25,10 +25,6 @@ WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. */
|
|||
|
||||
#include "unwind_i.h"
|
||||
|
||||
#ifdef HAVE_IA64INTRIN_H
|
||||
# include <ia64intrin.h>
|
||||
#endif
|
||||
|
||||
void
|
||||
unw_flush_cache (unw_addr_space_t as, unw_word_t lo, unw_word_t hi)
|
||||
{
|
||||
|
@ -40,8 +36,8 @@ unw_flush_cache (unw_addr_space_t as, unw_word_t lo, unw_word_t hi)
|
|||
unw_flush_cache() is allowed to flush more than the requested
|
||||
range. */
|
||||
|
||||
#ifdef HAVE_IA64INTRIN_H
|
||||
__sync_fetch_and_add(&as->cache_generation, 1);
|
||||
#ifdef HAVE_FETCH_AND_ADD1
|
||||
fetch_and_add1(&as->cache_generation);
|
||||
#else
|
||||
# warning unw_flush_cache(): need a way to atomically increment an integer.
|
||||
++as->cache_generation;
|
||||
|
|
Loading…
Reference in a new issue