|
@@ -178,8 +178,8 @@ int arch_validate_hwbkpt_settings(struct perf_event *bp)
|
|
if (cpu_has_feature(CPU_FTR_DAWR)) {
|
|
if (cpu_has_feature(CPU_FTR_DAWR)) {
|
|
length_max = 512 ; /* 64 doublewords */
|
|
length_max = 512 ; /* 64 doublewords */
|
|
/* DAWR region can't cross 512 boundary */
|
|
/* DAWR region can't cross 512 boundary */
|
|
- if ((bp->attr.bp_addr >> 10) !=
|
|
|
|
- ((bp->attr.bp_addr + bp->attr.bp_len - 1) >> 10))
|
|
|
|
|
|
+ if ((bp->attr.bp_addr >> 9) !=
|
|
|
|
+ ((bp->attr.bp_addr + bp->attr.bp_len - 1) >> 9))
|
|
return -EINVAL;
|
|
return -EINVAL;
|
|
}
|
|
}
|
|
if (info->len >
|
|
if (info->len >
|