2 * Common header file for Blackfin family of processors.
4 * Copyright 2004-2009 Analog Devices Inc.
6 * Licensed under the GPL-2 or later.
12 #include <mach/anomaly.h>
16 /* SSYNC implementation for C file */
17 static inline void SSYNC(void)
29 else if (ANOMALY_05000244
)
37 __asm__
__volatile__("ssync;");
40 /* CSYNC implementation for C file */
41 static inline void CSYNC(void)
53 else if (ANOMALY_05000244
)
61 __asm__
__volatile__("csync;");
64 #else /* __ASSEMBLY__ */
66 #define LO(con32) ((con32) & 0xFFFF)
67 #define lo(con32) ((con32) & 0xFFFF)
68 #define HI(con32) (((con32) >> 16) & 0xFFFF)
69 #define hi(con32) (((con32) >> 16) & 0xFFFF)
71 /* SSYNC & CSYNC implementations for assembly files */
73 #define ssync(x) SSYNC(x)
74 #define csync(x) CSYNC(x)
77 #define SSYNC(scratch) cli scratch; nop; nop; SSYNC; sti scratch;
78 #define CSYNC(scratch) cli scratch; nop; nop; CSYNC; sti scratch;
80 #elif ANOMALY_05000244
81 #define SSYNC(scratch) nop; nop; nop; SSYNC;
82 #define CSYNC(scratch) nop; nop; nop; CSYNC;
85 #define SSYNC(scratch) SSYNC;
86 #define CSYNC(scratch) CSYNC;
88 #endif /* ANOMALY_05000312 & ANOMALY_05000244 handling */
90 #endif /* __ASSEMBLY__ */
92 #include <asm/mem_map.h>
93 #include <mach/blackfin.h>
94 #include <asm/bfin-global.h>
96 #endif /* _BLACKFIN_H_ */