projects
/
GitHub
/
moto-9609
/
android_kernel_motorola_exynos9610.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
2951acb
)
Blackfin: kgdb: cache flushing is not safe in SMP mode
author
Sonic Zhang
<sonic.zhang@analog.com>
Thu, 5 Aug 2010 07:58:15 +0000
(07:58 +0000)
committer
Mike Frysinger
<vapier@gentoo.org>
Wed, 25 May 2011 12:13:42 +0000
(08:13 -0400)
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>
arch/blackfin/include/asm/kgdb.h
patch
|
blob
|
blame
|
history
diff --git
a/arch/blackfin/include/asm/kgdb.h
b/arch/blackfin/include/asm/kgdb.h
index 8651afe1299027502afd3700b4394ae3dfcf0b85..3ac0c72e9fee864c370955bc6ff1d8cc64c132f1 100644
(file)
--- 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