提交 3c2165f8 编写于 作者: R Rabin Vincent 提交者: Jesper Nilsson

CRISv10: remove redundant macros from system.h

All of these are either unused or already provided by other headers, so
they can be removed.
Signed-off-by: NRabin Vincent <rabin@rab.in>
Signed-off-by: NJesper Nilsson <jespern@axis.com>
上级 47a8f6fb
......@@ -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
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册