Skip to content

Commit

Permalink
CRISv10: remove redundant macros from system.h
Browse files Browse the repository at this point in the history
All of these are either unused or already provided by other headers, so
they can be removed.

Signed-off-by: Rabin Vincent <rabin@rab.in>
Signed-off-by: Jesper Nilsson <jespern@axis.com>
  • Loading branch information
Rabin Vincent authored and Jesper Nilsson committed Mar 25, 2015
1 parent 47a8f6f commit 3c2165f
Showing 1 changed file with 0 additions and 8 deletions.
8 changes: 0 additions & 8 deletions arch/cris/include/arch-v10/arch/system.h
Original file line number Diff line number Diff line change
Expand Up @@ -36,12 +36,4 @@ static inline unsigned long _get_base(char * addr)
return 0;
}

#define nop() __asm__ __volatile__ ("nop");

#define xchg(ptr,x) ((__typeof__(*(ptr)))__xchg((unsigned long)(x),(ptr),sizeof(*(ptr))))
#define tas(ptr) (xchg((ptr),1))

struct __xchg_dummy { unsigned long a[100]; };
#define __xg(x) ((struct __xchg_dummy *)(x))

#endif

0 comments on commit 3c2165f

Please sign in to comment.