summaryrefslogtreecommitdiff
path: root/i386
diff options
context:
space:
mode:
authorSamuel Thibault <samuel.thibault@ens-lyon.org>2012-03-14 01:11:59 +0100
committerSamuel Thibault <samuel.thibault@ens-lyon.org>2012-03-14 01:11:59 +0100
commit2700ef3ddc48b0e4e4f3033043e83b257ae87ff4 (patch)
treef58b2771691ed9f4569e1cee54eb454b021b1a4c /i386
parent4ae07e7e07cf77f1b7ce06bebf1057bfe4a16c54 (diff)
Simplify kvtophys
* i386/i386/phys.c (kvtophys): Use pte_to_pa macro instead of reimplementing it.
Diffstat (limited to 'i386')
-rw-r--r--i386/i386/phys.c6
1 files changed, 1 insertions, 5 deletions
diff --git a/i386/i386/phys.c b/i386/i386/phys.c
index 925593b..ed4a309 100644
--- a/i386/i386/phys.c
+++ b/i386/i386/phys.c
@@ -105,9 +105,5 @@ vm_offset_t addr;
if ((pte = pmap_pte(kernel_pmap, addr)) == PT_ENTRY_NULL)
return 0;
- return i386_trunc_page(
-#ifdef MACH_PSEUDO_PHYS
- ma_to_pa
-#endif /* MACH_PSEUDO_PHYS */
- (*pte)) | (addr & INTEL_OFFMASK);
+ return pte_to_pa(*pte) | (addr & INTEL_OFFMASK);
}