fix CPU_CORTEXA5 && !MULTIPROCESSOR build

This commit is contained in:
jmcneill 2015-02-07 00:08:34 +00:00
parent df912090bc
commit 75034e42f7
1 changed files with 3 additions and 3 deletions

View File

@ -30,7 +30,7 @@
#include "opt_multiprocessor.h"
#include <sys/cdefs.h>
__KERNEL_RCSID(1, "$NetBSD: arm32_tlb.c,v 1.7 2014/10/30 10:45:17 skrll Exp $");
__KERNEL_RCSID(1, "$NetBSD: arm32_tlb.c,v 1.8 2015/02/07 00:08:34 jmcneill Exp $");
#include <sys/param.h>
#include <sys/types.h>
@ -147,11 +147,11 @@ tlb_cortex_a5_record_asids(u_long *mapp)
const uint64_t d = ((uint64_t) armreg_tlbdata1_read())
| armreg_tlbdata0_read();
if (!(d & ARM_TLBDATA_VALID)
|| !(d & ARM_V5_TLBDATA_nG))
|| !(d & ARM_A5_TLBDATA_nG))
continue;
const tlb_asid_t asid = __SHIFTOUT(d,
ARM_V5_TLBDATA_ASID);
ARM_A5_TLBDATA_ASID);
const u_long mask = 1L << (asid & 31);
const size_t idx = asid >> 5;
if (mapp[idx] & mask)