summaryrefslogtreecommitdiff
path: root/sys
diff options
context:
space:
mode:
authorMark Kettenis <kettenis@cvs.openbsd.org>2020-08-21 13:42:03 +0000
committerMark Kettenis <kettenis@cvs.openbsd.org>2020-08-21 13:42:03 +0000
commitea1be61fabece4ab78af1c506bb63cf58272e636 (patch)
treedcf26163a3ca8932bd61a459290c0f9501c95ca4 /sys
parentf964e0d6a21f092a18a29d28e39e2879b9618236 (diff)
Use u_long for generation of VSIDs.
Diffstat (limited to 'sys')
-rw-r--r--sys/arch/powerpc64/powerpc64/pmap.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/sys/arch/powerpc64/powerpc64/pmap.c b/sys/arch/powerpc64/powerpc64/pmap.c
index eba61982c17..4c69b41d163 100644
--- a/sys/arch/powerpc64/powerpc64/pmap.c
+++ b/sys/arch/powerpc64/powerpc64/pmap.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: pmap.c,v 1.41 2020/08/17 16:55:41 kettenis Exp $ */
+/* $OpenBSD: pmap.c,v 1.42 2020/08/21 13:42:02 kettenis Exp $ */
/*
* Copyright (c) 2015 Martin Pieuchot
@@ -372,7 +372,7 @@ pmap_slbd_fault(pmap_t pm, vaddr_t va)
return EFAULT;
}
-u_int pmap_vsid;
+u_long pmap_vsid;
struct slb_desc *
pmap_slbd_alloc(pmap_t pm, vaddr_t va)
@@ -388,7 +388,7 @@ pmap_slbd_alloc(pmap_t pm, vaddr_t va)
return NULL;
slbd->slbd_esid = esid;
- slbd->slbd_vsid = atomic_inc_int_nv(&pmap_vsid);
+ slbd->slbd_vsid = atomic_inc_long_nv(&pmap_vsid);
KASSERT((slbd->slbd_vsid & KERNEL_VSID_BIT) == 0);
LIST_INSERT_HEAD(&pm->pm_slbd, slbd, slbd_list);