2 * Common header file for blackfin family of processors.
9 #include <asm/macros.h>
10 #include <asm/mach/blackfin.h>
11 #include <asm/bfin-global.h>
15 /* SSYNC implementation for C file */
16 #if defined(ANOMALY_05000312) && defined(ANOMALY_05000244)
17 static inline void SSYNC (void)
20 __asm__ __volatile__ ("cli %0;\n\t"
26 #elif defined(ANOMALY_05000312) && !defined(ANOMALY_05000244)
27 static inline void SSYNC (void)
30 __asm__ __volatile__ ("cli %0;\n\t"
35 #elif !defined(ANOMALY_05000312) && defined(ANOMALY_05000244)
36 static inline void SSYNC (void)
38 __builtin_bfin_ssync();
40 #elif !defined(ANOMALY_05000312) && !defined(ANOMALY_05000244)
41 static inline void SSYNC (void)
43 __asm__ __volatile__ ("ssync;\n\t");
47 /* CSYNC implementation for C file */
48 #if defined(ANOMALY_05000312) && defined(ANOMALY_05000244)
49 static inline void CSYNC (void)
52 __asm__ __volatile__ ("cli %0;\n\t"
58 #elif defined(ANOMALY_05000312) && !defined(ANOMALY_05000244)
59 static inline void CSYNC (void)
62 __asm__ __volatile__ ("cli %0;\n\t"
67 #elif !defined(ANOMALY_05000312) && defined(ANOMALY_05000244)
68 static inline void CSYNC (void)
70 __builtin_bfin_csync();
72 #elif !defined(ANOMALY_05000312) && !defined(ANOMALY_05000244)
73 static inline void CSYNC (void)
75 __asm__ __volatile__ ("csync;\n\t");
79 #endif /* __ASSEMBLY__ */
81 #endif /* _BLACKFIN_H_ */