diff options
Diffstat (limited to 'lib/libkvm/kvm_sparc64.c')
-rw-r--r-- | lib/libkvm/kvm_sparc64.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/libkvm/kvm_sparc64.c b/lib/libkvm/kvm_sparc64.c index 244ce86..dffcb24 100644 --- a/lib/libkvm/kvm_sparc64.c +++ b/lib/libkvm/kvm_sparc64.c @@ -138,10 +138,10 @@ _kvm_kvatop(kvm_t *kd, u_long va, u_long *pa) _kvm_syserr(kd, kd->program, "_kvm_vatop: read"); goto invalid; } - if (!tte_match(tte, va)) + if (!tte_match(&tte, va)) goto invalid; - *pa = TD_PA(tte.tte_data) + offset; + *pa = TTE_GET_PA(&tte) + offset; return (PAGE_SIZE - offset); invalid: |