PD#SWPL-6813
Problem:
sys_ptrace watchpoint can't stop
Solution:
decrease wrps num
Verify:
u212
Change-Id: I18947bd91f8dd07cedeebbfca6d7ce01107c6a3e
Signed-off-by: Hanjie Lin <hanjie.lin@amlogic.com>
static inline int get_num_wrps(void)
{
u64 dfr0 = read_system_reg(SYS_ID_AA64DFR0_EL1);
+#ifdef CONFIG_AMLOGIC_VMAP
+ return (1 +
+ cpuid_feature_extract_unsigned_field(dfr0,
+ ID_AA64DFR0_WRPS_SHIFT)) - 2;
+#else
return 1 +
cpuid_feature_extract_unsigned_field(dfr0,
ID_AA64DFR0_WRPS_SHIFT);
+#endif
}
#endif /* __KERNEL__ */