Skip to content

Commit

Permalink
Added ARM support
Browse files Browse the repository at this point in the history
Added ARM processor support in spin lock.c for Raspberry
  • Loading branch information
smizrahi committed Apr 12, 2017
1 parent e231e37 commit 7f935a2
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion spinlock.c
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,11 @@
#else
#define compare_and_swap(lock, o, n) \
__sync_bool_compare_and_swap(lock, o, n)
#define pause() __asm__("pause")
#ifdef __arm__
#define pause() __asm__("NOP");
#else
#define pause() __asm__("pause")
#endif
#define yield() sched_yield()
#endif

Expand Down

0 comments on commit 7f935a2

Please sign in to comment.