diff options
author | Samuel Thibault <samuel.thibault@ens-lyon.org> | 2012-03-14 01:11:59 +0100 |
---|---|---|
committer | Samuel Thibault <samuel.thibault@ens-lyon.org> | 2012-03-14 01:11:59 +0100 |
commit | 2700ef3ddc48b0e4e4f3033043e83b257ae87ff4 (patch) | |
tree | f58b2771691ed9f4569e1cee54eb454b021b1a4c /i386 | |
parent | 4ae07e7e07cf77f1b7ce06bebf1057bfe4a16c54 (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.c | 6 |
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); } |