Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 187799
b: refs/heads/master
c: 30124d1
h: refs/heads/master
i:
  187797: 028e16f
  187795: d37f3bc
  187791: cc03e1f
v: v3
  • Loading branch information
Dave Kleikamp authored and Benjamin Herrenschmidt committed Mar 9, 2010
1 parent 8e8d3b0 commit 49ebf52
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 7 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: a8e6da093ea8642b1320fb5d64134366f2a8d0ac
refs/heads/master: 30124d11097e371e42052144d8a3f4a78d26e09f
12 changes: 6 additions & 6 deletions trunk/arch/powerpc/kernel/ptrace.c
Original file line number Diff line number Diff line change
Expand Up @@ -940,7 +940,7 @@ static int del_instruction_bp(struct task_struct *child, int slot)
{
switch (slot) {
case 1:
if (child->thread.iac1 == 0)
if ((child->thread.dbcr0 & DBCR0_IAC1) == 0)
return -ENOENT;

if (dbcr_iac_range(child) & DBCR_IAC12MODE) {
Expand All @@ -952,7 +952,7 @@ static int del_instruction_bp(struct task_struct *child, int slot)
child->thread.dbcr0 &= ~DBCR0_IAC1;
break;
case 2:
if (child->thread.iac2 == 0)
if ((child->thread.dbcr0 & DBCR0_IAC2) == 0)
return -ENOENT;

if (dbcr_iac_range(child) & DBCR_IAC12MODE)
Expand All @@ -963,7 +963,7 @@ static int del_instruction_bp(struct task_struct *child, int slot)
break;
#if CONFIG_PPC_ADV_DEBUG_IACS > 2
case 3:
if (child->thread.iac3 == 0)
if ((child->thread.dbcr0 & DBCR0_IAC3) == 0)
return -ENOENT;

if (dbcr_iac_range(child) & DBCR_IAC34MODE) {
Expand All @@ -975,7 +975,7 @@ static int del_instruction_bp(struct task_struct *child, int slot)
child->thread.dbcr0 &= ~DBCR0_IAC3;
break;
case 4:
if (child->thread.iac4 == 0)
if ((child->thread.dbcr0 & DBCR0_IAC4) == 0)
return -ENOENT;

if (dbcr_iac_range(child) & DBCR_IAC34MODE)
Expand Down Expand Up @@ -1054,7 +1054,7 @@ static int set_dac(struct task_struct *child, struct ppc_hw_breakpoint *bp_info)
static int del_dac(struct task_struct *child, int slot)
{
if (slot == 1) {
if (child->thread.dac1 == 0)
if ((dbcr_dac(child) & (DBCR_DAC1R | DBCR_DAC1W)) == 0)
return -ENOENT;

child->thread.dac1 = 0;
Expand All @@ -1070,7 +1070,7 @@ static int del_dac(struct task_struct *child, int slot)
child->thread.dvc1 = 0;
#endif
} else if (slot == 2) {
if (child->thread.dac2 == 0)
if ((dbcr_dac(child) & (DBCR_DAC2R | DBCR_DAC2W)) == 0)
return -ENOENT;

#ifdef CONFIG_PPC_ADV_DEBUG_DAC_RANGE
Expand Down

0 comments on commit 49ebf52

Please sign in to comment.