powerpc/watchpoint: Rename current H_SET_MODE DAWR macro
Current H_SET_MODE hcall macro name for setting/resetting DAWR0 is H_SET_MODE_RESOURCE_SET_DAWR. Add suffix 0 to macro name as well. Signed-off-by: Ravi Bangoria <ravi.bangoria@linux.ibm.com> Reviewed-by: Jordan Niethe <jniethe5@gmail.com> Signed-off-by: Michael Ellerman <mpe@ellerman.id.au> Link: https://lore.kernel.org/r/20200723090813.303838-8-ravi.bangoria@linux.ibm.com
This commit is contained in:
Родитель
8f45ca3f8b
Коммит
6f3fe297f9
|
@ -355,7 +355,7 @@
|
|||
|
||||
/* Values for 2nd argument to H_SET_MODE */
|
||||
#define H_SET_MODE_RESOURCE_SET_CIABR 1
|
||||
#define H_SET_MODE_RESOURCE_SET_DAWR 2
|
||||
#define H_SET_MODE_RESOURCE_SET_DAWR0 2
|
||||
#define H_SET_MODE_RESOURCE_ADDR_TRANS_MODE 3
|
||||
#define H_SET_MODE_RESOURCE_LE 4
|
||||
|
||||
|
|
|
@ -312,7 +312,7 @@ static inline long plpar_set_ciabr(unsigned long ciabr)
|
|||
|
||||
static inline long plpar_set_watchpoint0(unsigned long dawr0, unsigned long dawrx0)
|
||||
{
|
||||
return plpar_set_mode(0, H_SET_MODE_RESOURCE_SET_DAWR, dawr0, dawrx0);
|
||||
return plpar_set_mode(0, H_SET_MODE_RESOURCE_SET_DAWR0, dawr0, dawrx0);
|
||||
}
|
||||
|
||||
static inline long plpar_signal_sys_reset(long cpu)
|
||||
|
|
|
@ -764,7 +764,7 @@ static int kvmppc_h_set_mode(struct kvm_vcpu *vcpu, unsigned long mflags,
|
|||
return H_P3;
|
||||
vcpu->arch.ciabr = value1;
|
||||
return H_SUCCESS;
|
||||
case H_SET_MODE_RESOURCE_SET_DAWR:
|
||||
case H_SET_MODE_RESOURCE_SET_DAWR0:
|
||||
if (!kvmppc_power8_compatible(vcpu))
|
||||
return H_P2;
|
||||
if (!ppc_breakpoint_available())
|
||||
|
|
Загрузка…
Ссылка в новой задаче