Blackfin arch: only define HI/LO macros for assembly files
Only define HI/LO macros for assembly files since some common C files use HI/LO as variable names Signed-off-by: Mike Frysinger <vapier.adi@gmail.com> Signed-off-by: Bryan Wu <cooloney@kernel.org>
This commit is contained in:
parent
dce783c5e4
commit
b5e986c468
1 changed files with 5 additions and 5 deletions
|
@ -6,11 +6,6 @@
|
||||||
#ifndef _BLACKFIN_H_
|
#ifndef _BLACKFIN_H_
|
||||||
#define _BLACKFIN_H_
|
#define _BLACKFIN_H_
|
||||||
|
|
||||||
#define LO(con32) ((con32) & 0xFFFF)
|
|
||||||
#define lo(con32) ((con32) & 0xFFFF)
|
|
||||||
#define HI(con32) (((con32) >> 16) & 0xFFFF)
|
|
||||||
#define hi(con32) (((con32) >> 16) & 0xFFFF)
|
|
||||||
|
|
||||||
#include <mach/anomaly.h>
|
#include <mach/anomaly.h>
|
||||||
|
|
||||||
#ifndef __ASSEMBLY__
|
#ifndef __ASSEMBLY__
|
||||||
|
@ -65,6 +60,11 @@ static inline void CSYNC(void)
|
||||||
|
|
||||||
#else /* __ASSEMBLY__ */
|
#else /* __ASSEMBLY__ */
|
||||||
|
|
||||||
|
#define LO(con32) ((con32) & 0xFFFF)
|
||||||
|
#define lo(con32) ((con32) & 0xFFFF)
|
||||||
|
#define HI(con32) (((con32) >> 16) & 0xFFFF)
|
||||||
|
#define hi(con32) (((con32) >> 16) & 0xFFFF)
|
||||||
|
|
||||||
/* SSYNC & CSYNC implementations for assembly files */
|
/* SSYNC & CSYNC implementations for assembly files */
|
||||||
|
|
||||||
#define ssync(x) SSYNC(x)
|
#define ssync(x) SSYNC(x)
|
||||||
|
|
Reference in a new issue