mirror of
https://github.com/hardkernel/linux.git
synced 2026-06-09 04:10:18 +09:00
mm: vmap: decrease wrps num [1/1]
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>
This commit is contained in:
@@ -159,9 +159,15 @@ static inline int get_num_brps(void)
|
||||
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__ */
|
||||
|
||||
Reference in New Issue
Block a user