summaryrefslogtreecommitdiffstats
path: root/arch/blackfin/include/asm/kgdb.h
diff options
context:
space:
mode:
authorSonic Zhang <sonic.zhang@analog.com>2010-08-05 09:58:15 +0200
committerMike Frysinger <vapier@gentoo.org>2011-05-25 14:13:42 +0200
commitc505217ca058aa4bcb0cba7bc6b2d228120b3e3e (patch)
tree5c3519d39dbb080097398548de7b0491da76c452 /arch/blackfin/include/asm/kgdb.h
parentBlackfin: SMP: drop unused blackfin_cpudata.idle pointer (diff)
downloadlinux-c505217ca058aa4bcb0cba7bc6b2d228120b3e3e.tar.xz
linux-c505217ca058aa4bcb0cba7bc6b2d228120b3e3e.zip
Blackfin: kgdb: cache flushing is not safe in SMP mode
Make sure we mark cache flushing as unsafe to kgdb in SMP mode so that kgdb doesn't flush things incorrectly on us. Signed-off-by: Sonic Zhang <sonic.zhang@analog.com> Signed-off-by: Mike Frysinger <vapier@gentoo.org>
Diffstat (limited to 'arch/blackfin/include/asm/kgdb.h')
-rw-r--r--arch/blackfin/include/asm/kgdb.h6
1 files changed, 5 insertions, 1 deletions
diff --git a/arch/blackfin/include/asm/kgdb.h b/arch/blackfin/include/asm/kgdb.h
index 8651afe12990..3ac0c72e9fee 100644
--- a/arch/blackfin/include/asm/kgdb.h
+++ b/arch/blackfin/include/asm/kgdb.h
@@ -103,7 +103,11 @@ static inline void arch_kgdb_breakpoint(void)
asm("EXCPT 2;");
}
#define BREAK_INSTR_SIZE 2
-#define CACHE_FLUSH_IS_SAFE 1
+#ifdef CONFIG_SMP
+# define CACHE_FLUSH_IS_SAFE 0
+#else
+# define CACHE_FLUSH_IS_SAFE 1
+#endif
#define HW_INST_WATCHPOINT_NUM 6
#define HW_WATCHPOINT_NUM 8
#define TYPE_INST_WATCHPOINT 0