diff options
author | Dongdong Deng <dongdong.deng@windriver.com> | 2010-08-18 07:02:00 -0400 |
---|---|---|
committer | Jason Wessel <jason.wessel@windriver.com> | 2010-10-29 14:14:41 -0400 |
commit | d7ba979d45272385ce0fdf141d922e61ff48e07b (patch) | |
tree | 713ffb5f2e079c6abdeb15cd4830a014df12db9b /kernel | |
parent | 578bd4dfcda63d2ef15f025f1d5d55c0e56b9660 (diff) |
debug_core,x86,blackfin: Clean up hw debug disable API
The kgdb_disable_hw_debug() was an architecture specific function for
disabling all hardware breakpoints on a per cpu basis when entering
the debug core.
This patch will remove the weak function kdbg_disable_hw_debug() and
change it into a call back which lives with the rest of hw breakpoint
call backs in struct kgdb_arch.
Signed-off-by: Dongdong Deng <dongdong.deng@windriver.com>
Signed-off-by: Jason Wessel <jason.wessel@windriver.com>
Diffstat (limited to 'kernel')
-rw-r--r-- | kernel/debug/debug_core.c | 16 |
1 files changed, 3 insertions, 13 deletions
diff --git a/kernel/debug/debug_core.c b/kernel/debug/debug_core.c index fec596da9bd0..cefd4a11f6d9 100644 --- a/kernel/debug/debug_core.c +++ b/kernel/debug/debug_core.c | |||
@@ -209,18 +209,6 @@ int __weak kgdb_skipexception(int exception, struct pt_regs *regs) | |||
209 | return 0; | 209 | return 0; |
210 | } | 210 | } |
211 | 211 | ||
212 | /** | ||
213 | * kgdb_disable_hw_debug - Disable hardware debugging while we in kgdb. | ||
214 | * @regs: Current &struct pt_regs. | ||
215 | * | ||
216 | * This function will be called if the particular architecture must | ||
217 | * disable hardware debugging while it is processing gdb packets or | ||
218 | * handling exception. | ||
219 | */ | ||
220 | void __weak kgdb_disable_hw_debug(struct pt_regs *regs) | ||
221 | { | ||
222 | } | ||
223 | |||
224 | /* | 212 | /* |
225 | * Some architectures need cache flushes when we set/clear a | 213 | * Some architectures need cache flushes when we set/clear a |
226 | * breakpoint: | 214 | * breakpoint: |
@@ -484,7 +472,9 @@ static int kgdb_cpu_enter(struct kgdb_state *ks, struct pt_regs *regs, | |||
484 | atomic_inc(&masters_in_kgdb); | 472 | atomic_inc(&masters_in_kgdb); |
485 | else | 473 | else |
486 | atomic_inc(&slaves_in_kgdb); | 474 | atomic_inc(&slaves_in_kgdb); |
487 | kgdb_disable_hw_debug(ks->linux_regs); | 475 | |
476 | if (arch_kgdb_ops.disable_hw_break) | ||
477 | arch_kgdb_ops.disable_hw_break(regs); | ||
488 | 478 | ||
489 | acquirelock: | 479 | acquirelock: |
490 | /* | 480 | /* |