-/* $OpenBSD: pmap.c,v 1.119 2021/07/24 08:21:13 visa Exp $ */
+/* $OpenBSD: pmap.c,v 1.120 2021/09/13 12:16:43 visa Exp $ */
/*
* Copyright (c) 2001-2004 Opsycon AB (www.opsycon.se / www.opsycon.com)
CPU_INFO_FOREACH(cii, ci) {
if (CPU_IS_RUNNING(ci) &&
pmap->pm_asid[ci->ci_cpuid].pma_asidgen != 0)
- cpumask |= 1ul << ci->ci_cpuid;
+ cpumask |= 1UL << ci->ci_cpuid;
}
pmap_swunlock(pmap);
if (cpumask != 0) {
struct cpu_info *ci, *self = curcpu();
CPU_INFO_ITERATOR cii;
vaddr_t va;
- unsigned int cpumask = 0;
+ unsigned long cpumask = 0;
pmap_swlock(pmap);
CPU_INFO_FOREACH(cii, ci) {
continue;
}
}
- cpumask |= 1 << ci->ci_cpuid;
+ cpumask |= 1UL << ci->ci_cpuid;
}
pmap_swunlock(pmap);
if (cpumask != 0) {