summaryrefslogtreecommitdiffstats
path: root/lib/libkvm/kvm_m88k.c
diff options
context:
space:
mode:
authorderaadt <deraadt@openbsd.org>2004-06-15 03:52:58 +0000
committerderaadt <deraadt@openbsd.org>2004-06-15 03:52:58 +0000
commit551fad64171f4c0c38eba073dc73cb3cc9cf46b8 (patch)
treeebc47c49693664cd80f37896ae72efdfbb6f0868 /lib/libkvm/kvm_m88k.c
parentRemove obsolete ioctls. ok beck@ dhartmei@ henning@ (diff)
downloadwireguard-openbsd-551fad64171f4c0c38eba073dc73cb3cc9cf46b8.tar.xz
wireguard-openbsd-551fad64171f4c0c38eba073dc73cb3cc9cf46b8.zip
knf; ok millert
Diffstat (limited to 'lib/libkvm/kvm_m88k.c')
-rw-r--r--lib/libkvm/kvm_m88k.c37
1 files changed, 17 insertions, 20 deletions
diff --git a/lib/libkvm/kvm_m88k.c b/lib/libkvm/kvm_m88k.c
index c5736be61fa..2f53544859e 100644
--- a/lib/libkvm/kvm_m88k.c
+++ b/lib/libkvm/kvm_m88k.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: kvm_m88k.c,v 1.1 2004/04/21 18:35:25 miod Exp $ */
+/* $OpenBSD: kvm_m88k.c,v 1.2 2004/06/15 03:52:59 deraadt Exp $ */
/* $NetBSD: kvm_alpha.c,v 1.2 1995/09/29 03:57:48 cgd Exp $ */
/*
@@ -6,17 +6,17 @@
* All rights reserved.
*
* Author: Chris G. Demetriou
- *
+ *
* Permission to use, copy, modify and distribute this software and
* its documentation is hereby granted, provided that both the copyright
* notice and this permission notice appear in all copies of the
* software, derivative works or modified versions, and any portions
* thereof, and that both notices appear in supporting documentation.
- *
- * CARNEGIE MELLON ALLOWS FREE USE OF THIS SOFTWARE IN ITS "AS IS"
- * CONDITION. CARNEGIE MELLON DISCLAIMS ANY LIABILITY OF ANY KIND
+ *
+ * CARNEGIE MELLON ALLOWS FREE USE OF THIS SOFTWARE IN ITS "AS IS"
+ * CONDITION. CARNEGIE MELLON DISCLAIMS ANY LIABILITY OF ANY KIND
* FOR ANY DAMAGES WHATSOEVER RESULTING FROM THE USE OF THIS SOFTWARE.
- *
+ *
* Carnegie Mellon requests users of this software to return to
*
* Software Distribution Coordinator or Software.Distribution@CS.CMU.EDU
@@ -44,36 +44,33 @@
#include "kvm_private.h"
void
-_kvm_freevtop(kd)
- kvm_t *kd;
+_kvm_freevtop(kvm_t *kd)
{
-
+ if (kd->vmst != NULL) {
+ free(kd->vmst);
+ kd->vmst = NULL;
+ }
}
int
-_kvm_initvtop(kd)
- kvm_t *kd;
+_kvm_initvtop(kvm_t *kd)
{
return (0);
}
int
-_kvm_kvatop(kd, va, pa)
- kvm_t *kd;
- u_long va;
- u_long *pa;
+_kvm_kvatop(kvm_t *kd, u_long va, u_long *pa)
{
/* don't forget k0seg translations! */
-
+ _kvm_err(kd, 0, "vatop not yet implemented!");
return (0);
}
+
off_t
-_kvm_pa2off(kd, pa)
- kvm_t *kd;
- u_long pa;
+_kvm_pa2off(kvm_t *kd, u_long pa)
{
_kvm_err(kd, 0, "pa2off not yet implemented!");
- return 0;
+ return (0);
}