Commit b2286f2b authored by Bob Liu's avatar Bob Liu

blackfin: asm: fix blackfin.h broken

do{...}while makes no sense in __ASSEMBLY__ code paths.  now
kernels fail to build:
arch/blackfin/mach-bf561/atomic.S: Assembler messages:
arch/blackfin/mach-bf561/atomic.S:48: Error: syntax error. Input text
was do.
arch/blackfin/mach-bf561/atomic.S:48: Error:
arch/blackfin/mach-bf561/atomic.S:48: Error: syntax error. Input text
was }.
arch/blackfin/mach-bf561/atomic.S:48: Error:
arch/blackfin/mach-bf561/atomic.S:53: Error: syntax error. Input text
was do.
arch/blackfin/mach-bf561/atomic.S:53: Error:
arch/blackfin/mach-bf561/atomic.S:53: Error: syntax error. Input text
was }.
Signed-off-by: default avatarBob Liu <lliubbo@gmail.com>
parent b1a3c1da
...@@ -63,20 +63,16 @@ static inline void CSYNC(void) ...@@ -63,20 +63,16 @@ static inline void CSYNC(void)
#if ANOMALY_05000312 || ANOMALY_05000244 #if ANOMALY_05000312 || ANOMALY_05000244
#define SSYNC(scratch) \ #define SSYNC(scratch) \
do { \
cli scratch; \ cli scratch; \
nop; nop; nop; \ nop; nop; nop; \
SSYNC; \ SSYNC; \
sti scratch; \ sti scratch;
} while (0)
#define CSYNC(scratch) \ #define CSYNC(scratch) \
do { \
cli scratch; \ cli scratch; \
nop; nop; nop; \ nop; nop; nop; \
CSYNC; \ CSYNC; \
sti scratch; \ sti scratch;
} while (0)
#else #else
#define SSYNC(scratch) SSYNC; #define SSYNC(scratch) SSYNC;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment