Le 01/04/2020 Ã 08:12, Ravi Bangoria a ÃcritÂ:
So far we had only one watchpoint, so we have hardcoded HBP_NUM to 1.
But future Power architecture is introducing 2nd DAWR and thus kernel
should be able to dynamically find actual number of watchpoints
supported by hw it's running on. Introduce function for the same.
Also convert HBP_NUM macro to HBP_NUM_MAX, which will now represent
maximum number of watchpoints supported by Powerpc.
Everywhere else in the code, it is called 'breakpoint', not 'watchpoint'.
Wouldn't it be more consistent to call the function nr_bp_slots() instead of nr_wp_slots() ?
Especially as we are likely going to extend your changes to support DABR2 in addition to DABR on BOOK3S/32.