diff options
Diffstat (limited to 'arch/blackfin/kernel/kgdb.c')
-rw-r--r-- | arch/blackfin/kernel/kgdb.c | 12 |
1 files changed, 1 insertions, 11 deletions
diff --git a/arch/blackfin/kernel/kgdb.c b/arch/blackfin/kernel/kgdb.c index ab4022131a2a..0c4c53fa723e 100644 --- a/arch/blackfin/kernel/kgdb.c +++ b/arch/blackfin/kernel/kgdb.c | |||
@@ -219,6 +219,7 @@ int bfin_set_hw_break(unsigned long addr, int len, enum kgdb_bptype type) | |||
219 | if (bfin_type == breakinfo[breakno].type | 219 | if (bfin_type == breakinfo[breakno].type |
220 | && !breakinfo[breakno].occupied) { | 220 | && !breakinfo[breakno].occupied) { |
221 | breakinfo[breakno].occupied = 1; | 221 | breakinfo[breakno].occupied = 1; |
222 | breakinfo[breakno].skip = 0; | ||
222 | breakinfo[breakno].enabled = 1; | 223 | breakinfo[breakno].enabled = 1; |
223 | breakinfo[breakno].addr = addr; | 224 | breakinfo[breakno].addr = addr; |
224 | breakinfo[breakno].dataacc = dataacc; | 225 | breakinfo[breakno].dataacc = dataacc; |
@@ -426,17 +427,6 @@ int kgdb_arch_handle_exception(int vector, int signo, | |||
426 | kgdb_single_step = i + 1; | 427 | kgdb_single_step = i + 1; |
427 | } | 428 | } |
428 | 429 | ||
429 | if (vector == VEC_WATCH) { | ||
430 | wp_status = bfin_read_WPSTAT(); | ||
431 | for (breakno = 0; breakno < HW_WATCHPOINT_NUM; breakno++) { | ||
432 | if (wp_status & (1 << breakno)) { | ||
433 | breakinfo->skip = 1; | ||
434 | break; | ||
435 | } | ||
436 | } | ||
437 | bfin_write_WPSTAT(0); | ||
438 | } | ||
439 | |||
440 | bfin_correct_hw_break(); | 430 | bfin_correct_hw_break(); |
441 | 431 | ||
442 | return 0; | 432 | return 0; |