summaryrefslogtreecommitdiffstats
path: root/arch/blackfin/include/asm
diff options
context:
space:
mode:
authorSonic Zhang <sonic.zhang@analog.com>2013-12-09 14:55:21 +0800
committerSonic Zhang <sonic.zhang@analog.com>2013-12-16 11:38:33 +0800
commitecf9ce2149bdb884ac294e9b39c673046bb9b572 (patch)
treee8b927dd75553c52ba0cf5f65ed54126abd25b12 /arch/blackfin/include/asm
parent31d5d4e056622ae655b8f37f09d643d2a4affbcb (diff)
downloadu-boot-ecf9ce2149bdb884ac294e9b39c673046bb9b572.tar.gz
u-boot-ecf9ce2149bdb884ac294e9b39c673046bb9b572.tar.xz
u-boot-ecf9ce2149bdb884ac294e9b39c673046bb9b572.zip
blackfin: remove build warning
Signed-off-by: Sonic Zhang <sonic.zhang@analog.com>
Diffstat (limited to 'arch/blackfin/include/asm')
-rw-r--r--arch/blackfin/include/asm/blackfin_local.h7
1 files changed, 5 insertions, 2 deletions
diff --git a/arch/blackfin/include/asm/blackfin_local.h b/arch/blackfin/include/asm/blackfin_local.h
index 8ea8cde691..4d6eeab0ec 100644
--- a/arch/blackfin/include/asm/blackfin_local.h
+++ b/arch/blackfin/include/asm/blackfin_local.h
@@ -81,6 +81,8 @@ extern void blackfin_dcache_flush_invalidate_range(const void *, const void *);
# define NOP_PAD_ANOMALY_05000198
#endif
+#define BFIN_BUG() while (1) asm volatile("emuexcpt;");
+
#define _bfin_readX(addr, size, asm_size, asm_ext) ({ \
u32 __v; \
__asm__ __volatile__( \
@@ -111,7 +113,7 @@ extern void blackfin_dcache_flush_invalidate_range(const void *, const void *);
sizeof(*(addr)) == 1 ? bfin_read8(addr) : \
sizeof(*(addr)) == 2 ? bfin_read16(addr) : \
sizeof(*(addr)) == 4 ? bfin_read32(addr) : \
- ({ BUG(); 0; }); \
+ ({ BFIN_BUG(); 0; }); \
})
#define bfin_write(addr, val) \
do { \
@@ -119,7 +121,8 @@ do { \
case 1: bfin_write8(addr, val); break; \
case 2: bfin_write16(addr, val); break; \
case 4: bfin_write32(addr, val); break; \
- default: BUG(); \
+ default: \
+ BFIN_BUG(); \
} \
} while (0)