Module Name: src Committed By: chs Date: Sat Aug 15 07:24:10 UTC 2020
Modified Files: src/sys/uvm: uvm_object.c Log Message: use uint64_t rather than int for storing the index of a page within an object. To generate a diff of this commit: cvs rdiff -u -r1.24 -r1.25 src/sys/uvm/uvm_object.c Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files.
Modified files: Index: src/sys/uvm/uvm_object.c diff -u src/sys/uvm/uvm_object.c:1.24 src/sys/uvm/uvm_object.c:1.25 --- src/sys/uvm/uvm_object.c:1.24 Fri Aug 14 09:06:15 2020 +++ src/sys/uvm/uvm_object.c Sat Aug 15 07:24:09 2020 @@ -1,4 +1,4 @@ -/* $NetBSD: uvm_object.c,v 1.24 2020/08/14 09:06:15 chs Exp $ */ +/* $NetBSD: uvm_object.c,v 1.25 2020/08/15 07:24:09 chs Exp $ */ /* * Copyright (c) 2006, 2010, 2019 The NetBSD Foundation, Inc. @@ -37,7 +37,7 @@ */ #include <sys/cdefs.h> -__KERNEL_RCSID(0, "$NetBSD: uvm_object.c,v 1.24 2020/08/14 09:06:15 chs Exp $"); +__KERNEL_RCSID(0, "$NetBSD: uvm_object.c,v 1.25 2020/08/15 07:24:09 chs Exp $"); #ifdef _KERNEL_OPT #include "opt_ddb.h" @@ -259,7 +259,7 @@ static inline bool uvm_obj_page_tag_p(struct vm_page *pg, int tag) { struct uvm_object *uobj = pg->uobject; - int pgidx = pg->offset >> PAGE_SHIFT; + uint64_t pgidx = pg->offset >> PAGE_SHIFT; KASSERT(uobj != NULL); KASSERT(rw_lock_held(uobj->vmobjlock)); @@ -270,7 +270,7 @@ static inline void uvm_obj_page_set_tag(struct vm_page *pg, int tag) { struct uvm_object *uobj = pg->uobject; - int pgidx = pg->offset >> PAGE_SHIFT; + uint64_t pgidx = pg->offset >> PAGE_SHIFT; KASSERT(uobj != NULL); KASSERT(rw_write_held(uobj->vmobjlock)); @@ -281,7 +281,7 @@ static inline void uvm_obj_page_clear_tag(struct vm_page *pg, int tag) { struct uvm_object *uobj = pg->uobject; - int pgidx = pg->offset >> PAGE_SHIFT; + uint64_t pgidx = pg->offset >> PAGE_SHIFT; KASSERT(uobj != NULL); KASSERT(rw_write_held(uobj->vmobjlock));