diff options
author | Paul Mundt <lethal@linux-sh.org> | 2012-04-10 21:48:24 -0400 |
---|---|---|
committer | Paul Mundt <lethal@linux-sh.org> | 2012-04-10 21:48:24 -0400 |
commit | 21cb20d758254e68a369ba83c721f8ce083e6659 (patch) | |
tree | dfc46175fc8924925a3f88f2081ca0eaa8b40fd4 /arch/sh/include | |
parent | fd34ef9bc44b87d746b7178e9c4ba51163b46884 (diff) |
sh: kgdb: Unset CACHE_FLUSH_IS_SAFE for SMP.
Our SMP cache flush ops use CPU cross calls to deal with things
like I-cache accesses not being broadcast in hardware, so ensure that
the CACHE_FLUSH_IS_SAFE reflects this.
Signed-off-by: Paul Mundt <lethal@linux-sh.org>
Diffstat (limited to 'arch/sh/include')
-rw-r--r-- | arch/sh/include/asm/kgdb.h | 11 |
1 files changed, 8 insertions, 3 deletions
diff --git a/arch/sh/include/asm/kgdb.h b/arch/sh/include/asm/kgdb.h index 00485198f598..9e7d2d1b03e0 100644 --- a/arch/sh/include/asm/kgdb.h +++ b/arch/sh/include/asm/kgdb.h | |||
@@ -23,10 +23,15 @@ static inline void arch_kgdb_breakpoint(void) | |||
23 | __asm__ __volatile__ ("trapa #0x3c\n"); | 23 | __asm__ __volatile__ ("trapa #0x3c\n"); |
24 | } | 24 | } |
25 | 25 | ||
26 | #define BUFMAX 2048 | ||
27 | |||
28 | #define CACHE_FLUSH_IS_SAFE 1 | ||
29 | #define BREAK_INSTR_SIZE 2 | 26 | #define BREAK_INSTR_SIZE 2 |
27 | #define BUFMAX 2048 | ||
28 | |||
29 | #ifdef CONFIG_SMP | ||
30 | # define CACHE_FLUSH_IS_SAFE 0 | ||
31 | #else | ||
32 | # define CACHE_FLUSH_IS_SAFE 1 | ||
33 | #endif | ||
34 | |||
30 | #define GDB_ADJUSTS_BREAK_OFFSET | 35 | #define GDB_ADJUSTS_BREAK_OFFSET |
31 | 36 | ||
32 | #endif /* __ASM_SH_KGDB_H */ | 37 | #endif /* __ASM_SH_KGDB_H */ |