Re: [PATCH v2 09/16] powerpc/watchpoint: Convert thread_struct->hw_brk to an array

2020-04-01 Thread Ravi Bangoria
  static void set_debug_reg_defaults(struct thread_struct *thread)   { -    thread->hw_brk.address = 0; -    thread->hw_brk.type = 0; -    thread->hw_brk.len = 0; -    thread->hw_brk.hw_len = 0; -    if (ppc_breakpoint_available()) -    set_breakpoint(&thread->hw_brk); +    int i; + +    fo

Re: [PATCH v2 09/16] powerpc/watchpoint: Convert thread_struct->hw_brk to an array

2020-03-31 Thread Christophe Leroy
Le 01/04/2020 à 08:13, Ravi Bangoria a écrit : So far powerpc hw supported only one watchpoint. But Future Power architecture is introducing 2nd DAWR. Convert thread_struct->hw_brk into an array. Signed-off-by: Ravi Bangoria --- arch/powerpc/include/asm/processor.h | 2 +- arch/powe

[PATCH v2 09/16] powerpc/watchpoint: Convert thread_struct->hw_brk to an array

2020-03-31 Thread Ravi Bangoria
So far powerpc hw supported only one watchpoint. But Future Power architecture is introducing 2nd DAWR. Convert thread_struct->hw_brk into an array. Signed-off-by: Ravi Bangoria --- arch/powerpc/include/asm/processor.h | 2 +- arch/powerpc/kernel/process.c | 61 ++--