diff options
author | Visa Hankala <visa@cvs.openbsd.org> | 2021-09-13 12:16:44 +0000 |
---|---|---|
committer | Visa Hankala <visa@cvs.openbsd.org> | 2021-09-13 12:16:44 +0000 |
commit | 34f139f7773cb93a56d2fec690cb9aa4daa11e4d (patch) | |
tree | feba96d5775fd23224450e59431cc4a52ac9d999 /sys/arch/mips64 | |
parent | 6b5347687ac417958a38c72a3e863239ccd70960 (diff) |
Consistently use unsigned long for CPU masks in pmap.c.
Diffstat (limited to 'sys/arch/mips64')
-rw-r--r-- | sys/arch/mips64/mips64/pmap.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/sys/arch/mips64/mips64/pmap.c b/sys/arch/mips64/mips64/pmap.c index 23fbd162bd2..18c9cef006f 100644 --- a/sys/arch/mips64/mips64/pmap.c +++ b/sys/arch/mips64/mips64/pmap.c @@ -1,4 +1,4 @@ -/* $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) @@ -252,7 +252,7 @@ pmap_invalidate_icache(pmap_t pmap, vaddr_t va, pt_entry_t entry) 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) { @@ -287,7 +287,7 @@ pmap_shootdown_range(pmap_t pmap, vaddr_t sva, vaddr_t eva, int needisync) 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) { @@ -304,7 +304,7 @@ pmap_shootdown_range(pmap_t pmap, vaddr_t sva, vaddr_t eva, int needisync) continue; } } - cpumask |= 1 << ci->ci_cpuid; + cpumask |= 1UL << ci->ci_cpuid; } pmap_swunlock(pmap); if (cpumask != 0) { |