diff options
author | Brandon Creighton <bjc@cvs.openbsd.org> | 2001-03-16 05:46:10 +0000 |
---|---|---|
committer | Brandon Creighton <bjc@cvs.openbsd.org> | 2001-03-16 05:46:10 +0000 |
commit | 7e650e956ec483eb98591794774445419ff3666e (patch) | |
tree | b61d439cbe0a90bcb46c9d7c7f49bd07c94be8fa | |
parent | f1d12c8d78b7d9b14dcab14423f6899cb9fb1374 (diff) |
add a _kvm_pa2off() for vax
-rw-r--r-- | lib/libkvm/kvm_vax.c | 14 |
1 files changed, 13 insertions, 1 deletions
diff --git a/lib/libkvm/kvm_vax.c b/lib/libkvm/kvm_vax.c index 78187013c8c..4b08e8c03ab 100644 --- a/lib/libkvm/kvm_vax.c +++ b/lib/libkvm/kvm_vax.c @@ -1,4 +1,4 @@ -/* $OpenBSD: kvm_vax.c,v 1.3 1997/02/26 16:46:35 niklas Exp $ */ +/* $OpenBSD: kvm_vax.c,v 1.4 2001/03/16 05:46:09 bjc Exp $ */ /* $NetBSD: kvm_vax.c,v 1.3 1996/03/18 22:34:06 thorpej Exp $ */ /*- @@ -134,3 +134,15 @@ _kvm_kvatop(kd, va, pa) *pa = (va - KERNBASE); return (end - va); } + +/* + * Translate a physical address to an offset in the crash dump + * XXX crashdumps not working yet anyway + */ +off_t +_kvm_pa2off(kd, pa) + kvm_t *kd; + u_long pa; +{ + return(kd->dump_off+pa); +} |