Message ID | 8761pdht31.fsf_-_@igel.home (mailing list archive) |
---|---|
State | Accepted |
Commit | 1c430c06d0ce871f36b2af504d45a07356e44800 |
Headers | show |
I'm not near my machine to test but looks good. Thanks, Mikey On 22 Jan 2014 08:56, "Andreas Schwab" <schwab@linux-m68k.org> wrote: > This fixes a logic error that caused a failure to update the hw breakpoint > registers when not using the hw-breakpoint interface. > > Signed-off-by: Andreas Schwab <schwab@linux-m68k.org> > --- > arch/powerpc/kernel/process.c | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) > > diff --git a/arch/powerpc/kernel/process.c b/arch/powerpc/kernel/process.c > index 4a96556..7714950 100644 > --- a/arch/powerpc/kernel/process.c > +++ b/arch/powerpc/kernel/process.c > @@ -690,7 +690,7 @@ struct task_struct *__switch_to(struct task_struct > *prev, > * schedule DABR > */ > #ifndef CONFIG_HAVE_HW_BREAKPOINT > - if (unlikely(hw_brk_match(&__get_cpu_var(current_brk), > &new->thread.hw_brk))) > + if (unlikely(!hw_brk_match(&__get_cpu_var(current_brk), > &new->thread.hw_brk))) > set_breakpoint(&new->thread.hw_brk); > #endif /* CONFIG_HAVE_HW_BREAKPOINT */ > #endif > -- > 1.8.5.3 > > > -- > Andreas Schwab, schwab@linux-m68k.org > GPG Key fingerprint = 58CA 54C7 6D53 942B 1756 01D3 44D5 214B 8276 4ED5 > "And now for something completely different." > >
diff --git a/arch/powerpc/kernel/process.c b/arch/powerpc/kernel/process.c index 4a96556..7714950 100644 --- a/arch/powerpc/kernel/process.c +++ b/arch/powerpc/kernel/process.c @@ -690,7 +690,7 @@ struct task_struct *__switch_to(struct task_struct *prev, * schedule DABR */ #ifndef CONFIG_HAVE_HW_BREAKPOINT - if (unlikely(hw_brk_match(&__get_cpu_var(current_brk), &new->thread.hw_brk))) + if (unlikely(!hw_brk_match(&__get_cpu_var(current_brk), &new->thread.hw_brk))) set_breakpoint(&new->thread.hw_brk); #endif /* CONFIG_HAVE_HW_BREAKPOINT */ #endif
This fixes a logic error that caused a failure to update the hw breakpoint registers when not using the hw-breakpoint interface. Signed-off-by: Andreas Schwab <schwab@linux-m68k.org> --- arch/powerpc/kernel/process.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)