Re: [PATCH v2 1/2] LoongArch: Change 8 to 14 for LOONGARCH_MAX_{BRP,WRP}

From: WANG Xuerui
Date: Fri Jan 24 2025 - 11:11:41 EST


On 1/22/25 11:23, Tiezhu Yang wrote:
The maximum number of load/store watchpoints and fetch instruction
watchpoints is 14 each according to LoongArch Reference Manual, so
change 8 to 14 for the related code.

Link: https://loongson.github.io/LoongArch-Documentation/LoongArch-Vol1-EN.html#control-and-status-registers-related-to-watchpoints
Fixes: edffa33c7bb5 ("LoongArch: Add hardware breakpoints/watchpoints support")
Signed-off-by: Tiezhu Yang <yangtiezhu@xxxxxxxxxxx>
---
arch/loongarch/include/asm/hw_breakpoint.h | 4 +-
arch/loongarch/include/asm/loongarch.h | 60 ++++++++++++++++++++++
arch/loongarch/kernel/hw_breakpoint.c | 16 +++++-
3 files changed, 76 insertions(+), 4 deletions(-)

Reviewed-by: WANG Xuerui <git@xxxxxxxxxx>

--
WANG "xen0n" Xuerui

Linux/LoongArch mailing list: https://lore.kernel.org/loongarch/