Skip to content

Commit

Permalink
sh: kgdb: Unset CACHE_FLUSH_IS_SAFE for SMP.
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Paul Mundt committed Apr 11, 2012
1 parent fd34ef9 commit 21cb20d
Showing 1 changed file with 8 additions and 3 deletions.
11 changes: 8 additions & 3 deletions arch/sh/include/asm/kgdb.h
Original file line number Diff line number Diff line change
Expand Up @@ -23,10 +23,15 @@ static inline void arch_kgdb_breakpoint(void)
__asm__ __volatile__ ("trapa #0x3c\n");
}

#define BUFMAX 2048

#define CACHE_FLUSH_IS_SAFE 1
#define BREAK_INSTR_SIZE 2
#define BUFMAX 2048

#ifdef CONFIG_SMP
# define CACHE_FLUSH_IS_SAFE 0
#else
# define CACHE_FLUSH_IS_SAFE 1
#endif

#define GDB_ADJUSTS_BREAK_OFFSET

#endif /* __ASM_SH_KGDB_H */

0 comments on commit 21cb20d

Please sign in to comment.