Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 228456
b: refs/heads/master
c: b68233e
h: refs/heads/master
v: v3
  • Loading branch information
Sonic Zhang authored and Mike Frysinger committed Jan 10, 2011
1 parent 27aff2d commit 9c7b2b9
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 2 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 900de05182d520ff66378e74a7b18f7d9971a32d
refs/heads/master: b68233e7f0126dfe59e1a064da9e37827c1f35ec
8 changes: 7 additions & 1 deletion trunk/arch/blackfin/kernel/kgdb.c
Original file line number Diff line number Diff line change
Expand Up @@ -347,15 +347,20 @@ void kgdb_roundup_cpu(int cpu, unsigned long flags)

#ifdef CONFIG_IPIPE
static unsigned long kgdb_arch_imask;
#endif

void kgdb_post_primary_code(struct pt_regs *regs, int e_vector, int err_code)
{
if (kgdb_single_step)
preempt_enable();

#ifdef CONFIG_IPIPE
if (kgdb_arch_imask) {
cpu_pda[raw_smp_processor_id()].ex_imask = kgdb_arch_imask;
kgdb_arch_imask = 0;
}
}
#endif
}

int kgdb_arch_handle_exception(int vector, int signo,
int err_code, char *remcom_in_buffer,
Expand Down Expand Up @@ -401,6 +406,7 @@ int kgdb_arch_handle_exception(int vector, int signo,
*/
kgdb_single_step = i + 1;

preempt_disable();
#ifdef CONFIG_IPIPE
kgdb_arch_imask = cpu_pda[raw_smp_processor_id()].ex_imask;
cpu_pda[raw_smp_processor_id()].ex_imask = 0;
Expand Down

0 comments on commit 9c7b2b9

Please sign in to comment.