static inline void SSYNC(void)
{
int _tmp;
- if (ANOMALY_05000312 && ANOMALY_05000244)
+ if (ANOMALY_05000312)
__asm__ __volatile__(
"cli %0;"
"nop;"
"sti %0;"
: "=d" (_tmp)
);
- else if (ANOMALY_05000312 && !ANOMALY_05000244)
- __asm__ __volatile__(
- "cli %0;"
- "ssync;"
- "sti %0;"
- : "=d" (_tmp)
- );
- else if (!ANOMALY_05000312 && ANOMALY_05000244)
+ else if (ANOMALY_05000244)
__asm__ __volatile__(
"nop;"
"nop;"
static inline void CSYNC(void)
{
int _tmp;
- if (ANOMALY_05000312 && ANOMALY_05000244)
+ if (ANOMALY_05000312)
__asm__ __volatile__(
"cli %0;"
"nop;"
"sti %0;"
: "=d" (_tmp)
);
- else if (ANOMALY_05000312 && !ANOMALY_05000244)
- __asm__ __volatile__(
- "cli %0;"
- "csync;"
- "sti %0;"
- : "=d" (_tmp)
- );
- else if (!ANOMALY_05000312 && ANOMALY_05000244)
+ else if (ANOMALY_05000244)
__asm__ __volatile__(
"nop;"
"nop;"
#define ssync(x) SSYNC(x)
#define csync(x) CSYNC(x)
-#if ANOMALY_05000312 && ANOMALY_05000244
-#define SSYNC(scratch) cli scratch; nop; nop; SSYNC; sti scratch;
-#define CSYNC(scratch) cli scratch; nop; nop; CSYNC; sti scratch;
-
-#elif ANOMALY_05000312 && !ANOMALY_05000244
+#if ANOMALY_05000312
#define SSYNC(scratch) cli scratch; nop; nop; SSYNC; sti scratch;
#define CSYNC(scratch) cli scratch; nop; nop; CSYNC; sti scratch;
-#elif !ANOMALY_05000312 && ANOMALY_05000244
+#elif ANOMALY_05000244
#define SSYNC(scratch) nop; nop; nop; SSYNC;
#define CSYNC(scratch) nop; nop; nop; CSYNC;
-#elif !ANOMALY_05000312 && !ANOMALY_05000244
+#else
#define SSYNC(scratch) SSYNC;
#define CSYNC(scratch) CSYNC;