aboutsummaryrefslogtreecommitdiff
path: root/vm/vm_resident.c
diff options
context:
space:
mode:
authorRichard Braun <rbraun@sceen.net>2016-09-20 22:11:24 +0200
committerRichard Braun <rbraun@sceen.net>2016-09-21 00:21:05 +0200
commit38aca37c00548f9b31bf17e74ab4a36c73521782 (patch)
tree41833d6c6e222e2bdc2410e963d53302c4654209 /vm/vm_resident.c
parent66a878640573dd9101e3915db44408b661220038 (diff)
downloadgnumach-38aca37c00548f9b31bf17e74ab4a36c73521782.tar.gz
gnumach-38aca37c00548f9b31bf17e74ab4a36c73521782.tar.bz2
gnumach-38aca37c00548f9b31bf17e74ab4a36c73521782.zip
Replace vm_offset_t with phys_addr_t where appropriate
* i386/i386/phys.c (pmap_zero_page, pmap_copy_page, copy_to_phys, copy_from_phys, kvtophys): Use the phys_addr_t type for physical addresses. * i386/intel/pmap.c (pmap_map, pmap_map_bd, pmap_destroy, pmap_remove_range, pmap_page_protect, pmap_enter, pmap_extract, pmap_collect, phys_attribute_clear, phys_attribute_test, pmap_clear_modify, pmap_is_modified, pmap_clear_reference, pmap_is_referenced): Likewise. * i386/intel/pmap.h (pt_entry_t): Unconditionally define as a phys_addr_t. (pmap_zero_page, pmap_copy_page, kvtophys): Use the phys_addr_t type for physical addresses. * vm/pmap.h (pmap_enter, pmap_page_protect, pmap_clear_reference, pmap_is_referenced, pmap_clear_modify, pmap_is_modified, pmap_extract, pmap_map_bd): Likewise. * vm/vm_page.h (vm_page_fictitious_addr): Declare as a phys_addr_t. * vm/vm_resident.c (vm_page_fictitious_addr): Likewise. (vm_page_grab_phys_addr): Change return type to phys_addr_t.
Diffstat (limited to 'vm/vm_resident.c')
-rw-r--r--vm/vm_resident.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/vm/vm_resident.c b/vm/vm_resident.c
index 3dff11bf..fdd25912 100644
--- a/vm/vm_resident.c
+++ b/vm/vm_resident.c
@@ -127,7 +127,7 @@ struct kmem_cache vm_page_cache;
* For debugging, this should be a strange value
* that the pmap module can recognize in assertions.
*/
-vm_offset_t vm_page_fictitious_addr = (vm_offset_t) -1;
+phys_addr_t vm_page_fictitious_addr = (phys_addr_t) -1;
/*
* Resident page structures are also chained on
@@ -820,7 +820,7 @@ vm_page_t vm_page_grab(
return mem;
}
-vm_offset_t vm_page_grab_phys_addr(void)
+phys_addr_t vm_page_grab_phys_addr(void)
{
vm_page_t p = vm_page_grab(FALSE);
if (p == VM_PAGE_NULL)