]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/commit
Avoid using the 64-bit vm_pindex_t in a few places where 64-bit
authorIan Dowse <iedowse@FreeBSD.org>
Wed, 26 Jun 2002 20:32:51 +0000 (20:32 +0000)
committerIan Dowse <iedowse@FreeBSD.org>
Wed, 26 Jun 2002 20:32:51 +0000 (20:32 +0000)
commit23f09d50bbe0e945ce1bdd1d894dc3eb4529d258
treeaeaaa6de77668fab79f17e2b343adbadf9d306a2
parent5125fe4f45482d86cc82bd50876614c78d055ee9
Avoid using the 64-bit vm_pindex_t in a few places where 64-bit
types are not required, as the overhead is unnecessary:

 o In the i386 pmap_protect(), `sindex' and `eindex' represent page
   indices within the 32-bit virtual address space.
 o In swp_pager_meta_build() and swp_pager_meta_ctl(), use a temporary
   variable to store the low few bits of a vm_pindex_t that gets used
   as an array index.
 o vm_uiomove() uses `osize' and `idx' for page offsets within a
   map entry.
 o In vm_object_split(), `idx' is a page offset within a map entry.
sys/amd64/amd64/pmap.c
sys/i386/i386/pmap.c
sys/vm/swap_pager.c
sys/vm/vm_map.c
sys/vm/vm_object.c