Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 10960
b: refs/heads/master
c: b188ffe
h: refs/heads/master
v: v3
  • Loading branch information
Ralf Baechle committed Oct 29, 2005
1 parent 1736b11 commit d4411b2
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 0964ce24d091a1d3dc7f667e1b107ab77d4325e6
refs/heads/master: b188ffe876382ecc009ceb4fe033fd6ec7ba4ede
3 changes: 3 additions & 0 deletions trunk/arch/mips/kernel/gdb-stub.c
Original file line number Diff line number Diff line change
Expand Up @@ -637,15 +637,18 @@ static struct gdb_bp_save async_bp;
* and only one can be active at a time.
*/
extern spinlock_t smp_call_lock;

void set_async_breakpoint(unsigned long *epc)
{
/* skip breaking into userland */
if ((*epc & 0x80000000) == 0)
return;

#ifdef CONFIG_SMP
/* avoid deadlock if someone is make IPC */
if (spin_is_locked(&smp_call_lock))
return;
#endif

async_bp.addr = *epc;
*epc = (unsigned long)async_breakpoint;
Expand Down

0 comments on commit d4411b2

Please sign in to comment.