hwpmc: fix arm64 INVARIANTS build

This commit is contained in:
mmacy 2018-06-08 05:48:28 +00:00
parent 08fabf55c9
commit 929120b15a

View File

@ -331,11 +331,11 @@ arm64_intr(struct trapframe *tf)
int error;
int reg, cpu;
cpu = curcpu;
KASSERT(cpu >= 0 && cpu < pmc_cpu_max(),
("[arm64,%d] CPU %d out of range", __LINE__, cpu));
retval = 0;
cpu = curcpu;
pc = arm64_pcpu[cpu];
for (ri = 0; ri < arm64_npmcs; ri++) {