2 * Common header file for blackfin family of processors.
9 #define LO(con32) ((con32) & 0xFFFF)
10 #define lo(con32) ((con32) & 0xFFFF)
11 #define HI(con32) (((con32) >> 16) & 0xFFFF)
12 #define hi(con32) (((con32) >> 16) & 0xFFFF)
14 #include <asm/mach/anomaly.h>
18 /* SSYNC implementation for C file */
19 static inline void SSYNC(void)
31 else if (ANOMALY_05000244
)
39 __asm__
__volatile__("ssync;");
42 /* CSYNC implementation for C file */
43 static inline void CSYNC(void)
55 else if (ANOMALY_05000244
)
63 __asm__
__volatile__("csync;");
66 #else /* __ASSEMBLY__ */
68 /* SSYNC & CSYNC implementations for assembly files */
70 #define ssync(x) SSYNC(x)
71 #define csync(x) CSYNC(x)
74 #define SSYNC(scratch) cli scratch; nop; nop; SSYNC; sti scratch;
75 #define CSYNC(scratch) cli scratch; nop; nop; CSYNC; sti scratch;
77 #elif ANOMALY_05000244
78 #define SSYNC(scratch) nop; nop; nop; SSYNC;
79 #define CSYNC(scratch) nop; nop; nop; CSYNC;
82 #define SSYNC(scratch) SSYNC;
83 #define CSYNC(scratch) CSYNC;
85 #endif /* ANOMALY_05000312 & ANOMALY_05000244 handling */
87 #endif /* __ASSEMBLY__ */
89 #include <asm/mach/blackfin.h>
90 #include <asm/bfin-global.h>
92 #endif /* _BLACKFIN_H_ */