diff options
author | marcel <marcel@FreeBSD.org> | 2004-09-23 00:05:20 +0000 |
---|---|---|
committer | marcel <marcel@FreeBSD.org> | 2004-09-23 00:05:20 +0000 |
commit | b9f196b2c46698e391410e2bf587cb7714cee9b5 (patch) | |
tree | 315bcf552fabb4cb03010e0c6838075df882b785 /lib | |
parent | 1bfbb82ba23d738bc5467974f0af3b3bf0aef70f (diff) | |
download | FreeBSD-src-b9f196b2c46698e391410e2bf587cb7714cee9b5.zip FreeBSD-src-b9f196b2c46698e391410e2bf587cb7714cee9b5.tar.gz |
Redefine a PTE as a 64-bit integral type instead of a struct of
bit-fields. Unify the PTE defines accordingly and update all
uses.
Diffstat (limited to 'lib')
-rw-r--r-- | lib/libkvm/kvm_ia64.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/libkvm/kvm_ia64.c b/lib/libkvm/kvm_ia64.c index 5b6f1c0..aadca00 100644 --- a/lib/libkvm/kvm_ia64.c +++ b/lib/libkvm/kvm_ia64.c @@ -196,9 +196,9 @@ _kvm_kvatop(kvm_t *kd, u_long va, u_long *pa) pgaddr += (pgno * sizeof(pte)); if (kvm_read(kd, pgaddr, &pte, sizeof(pte)) != sizeof(pte)) goto fail; - if (!pte.pte_p) + if (!(pte.pte & PTE_PRESENT)) goto fail; - va = ((u_long)pte.pte_ppn << 12) + (va & (pgsz - 1)); + va = (pte.pte & PTE_PPN_MASK) + (va & (pgsz - 1)); return (_kvm_pa2off(kd, va, pa, pgsz)); } |