summaryrefslogtreecommitdiff
path: root/arch/powerpc/kernel/dawr.c
diff options
context:
space:
mode:
authorRavi Bangoria <ravi.bangoria@linux.ibm.com>2020-05-14 16:47:26 +0530
committerMichael Ellerman <mpe@ellerman.id.au>2020-05-19 00:11:03 +1000
commit09f82b063aa9c248a3ef919aeec361054e7b044a (patch)
treed2a615a9e3203d93d66b4974ec7f508126353319 /arch/powerpc/kernel/dawr.c
parent3920742b92f5ea19a220edb947b6f33c99f501da (diff)
powerpc/watchpoint: Rename current DAWR macros
Power10 is introducing second DAWR. Use real register names from ISA for current macros: s/SPRN_DAWR/SPRN_DAWR0/ s/SPRN_DAWRX/SPRN_DAWRX0/ Signed-off-by: Ravi Bangoria <ravi.bangoria@linux.ibm.com> Signed-off-by: Michael Ellerman <mpe@ellerman.id.au> Reviewed-by: Michael Neuling <mikey@neuling.org> Link: https://lore.kernel.org/r/20200514111741.97993-2-ravi.bangoria@linux.ibm.com
Diffstat (limited to 'arch/powerpc/kernel/dawr.c')
-rw-r--r--arch/powerpc/kernel/dawr.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/arch/powerpc/kernel/dawr.c b/arch/powerpc/kernel/dawr.c
index cc14aa6c4a1b..e91b613bf137 100644
--- a/arch/powerpc/kernel/dawr.c
+++ b/arch/powerpc/kernel/dawr.c
@@ -39,8 +39,8 @@ int set_dawr(struct arch_hw_breakpoint *brk)
if (ppc_md.set_dawr)
return ppc_md.set_dawr(dawr, dawrx);
- mtspr(SPRN_DAWR, dawr);
- mtspr(SPRN_DAWRX, dawrx);
+ mtspr(SPRN_DAWR0, dawr);
+ mtspr(SPRN_DAWRX0, dawrx);
return 0;
}