diff options
author | Miod Vallat <miod@cvs.openbsd.org> | 2006-11-06 21:16:02 +0000 |
---|---|---|
committer | Miod Vallat <miod@cvs.openbsd.org> | 2006-11-06 21:16:02 +0000 |
commit | 447fa1c6fbfd1e5ab0a02a79637060e0431101f6 (patch) | |
tree | 70b1a4e471ebc3d6949d0add39ac2b69eaa34806 /lib/libkvm/kvm_hppa.c | |
parent | 32aca6b0a24845980934ceeb3de289b9a0ddbc8d (diff) |
Minimal lip service for savecore to be happy.
Diffstat (limited to 'lib/libkvm/kvm_hppa.c')
-rw-r--r-- | lib/libkvm/kvm_hppa.c | 13 |
1 files changed, 5 insertions, 8 deletions
diff --git a/lib/libkvm/kvm_hppa.c b/lib/libkvm/kvm_hppa.c index a08e7e5f70c..4f100d8d3a0 100644 --- a/lib/libkvm/kvm_hppa.c +++ b/lib/libkvm/kvm_hppa.c @@ -1,4 +1,4 @@ -/* $OpenBSD: kvm_hppa.c,v 1.5 2006/03/20 15:11:48 mickey Exp $ */ +/* $OpenBSD: kvm_hppa.c,v 1.6 2006/11/06 21:16:01 miod Exp $ */ /* * Copyright (c) 2002, Miodrag Vallat. @@ -53,15 +53,14 @@ _kvm_initvtop(kvm_t *kd) int _kvm_kvatop(kvm_t *kd, u_long va, paddr_t *pa) { - int offset; - if (ISALIVE(kd)) { _kvm_err(kd, 0, "vatop called in live kernel!"); return (0); } - /* TODO */ - return (0); + /* XXX this only really works for the kernel image only */ + *pa = va; + return (PAGE_SIZE - (va & PAGE_MASK)); } /* @@ -70,7 +69,5 @@ _kvm_kvatop(kvm_t *kd, u_long va, paddr_t *pa) off_t _kvm_pa2off(kvm_t *kd, paddr_t pa) { - /* TODO */ - return (0); + return (kd->dump_off + pa); } - |