xref: /openbsd-src/lib/libkvm/kvm_m88k.c (revision 6f05df2d9be0954bec42d51d943d77bd250fb664)
1 /*	$OpenBSD: kvm_m88k.c,v 1.5 2013/11/01 15:57:56 deraadt Exp $	*/
2 /*	$NetBSD: kvm_alpha.c,v 1.2 1995/09/29 03:57:48 cgd Exp $	*/
3 
4 /*
5  * Copyright (c) 1994, 1995 Carnegie-Mellon University.
6  * All rights reserved.
7  *
8  * Author: Chris G. Demetriou
9  *
10  * Permission to use, copy, modify and distribute this software and
11  * its documentation is hereby granted, provided that both the copyright
12  * notice and this permission notice appear in all copies of the
13  * software, derivative works or modified versions, and any portions
14  * thereof, and that both notices appear in supporting documentation.
15  *
16  * CARNEGIE MELLON ALLOWS FREE USE OF THIS SOFTWARE IN ITS "AS IS"
17  * CONDITION.  CARNEGIE MELLON DISCLAIMS ANY LIABILITY OF ANY KIND
18  * FOR ANY DAMAGES WHATSOEVER RESULTING FROM THE USE OF THIS SOFTWARE.
19  *
20  * Carnegie Mellon requests users of this software to return to
21  *
22  *  Software Distribution Coordinator  or  Software.Distribution@CS.CMU.EDU
23  *  School of Computer Science
24  *  Carnegie Mellon University
25  *  Pittsburgh PA 15213-3890
26  *
27  * any improvements or extensions that they make and grant Carnegie the
28  * rights to redistribute these changes.
29  */
30 
31 #include <sys/param.h>
32 #include <sys/proc.h>
33 #include <sys/stat.h>
34 #include <unistd.h>
35 #include <stdlib.h>
36 #include <nlist.h>
37 #include <kvm.h>
38 
39 #include <uvm/uvm_extern.h>
40 
41 #include <limits.h>
42 #include <db.h>
43 
44 #include "kvm_private.h"
45 
46 void
47 _kvm_freevtop(kvm_t *kd)
48 {
49 	if (kd->vmst != NULL) {
50 		free(kd->vmst);
51 		kd->vmst = NULL;
52 	}
53 }
54 
55 int
56 _kvm_initvtop(kvm_t *kd)
57 {
58 
59 	return (0);
60 }
61 
62 int
63 _kvm_kvatop(kvm_t *kd, u_long va, paddr_t *pa)
64 {
65 
66 	/* don't forget k0seg translations! */
67 	_kvm_err(kd, 0, "vatop not yet implemented!");
68 	return (0);
69 }
70 
71 off_t
72 _kvm_pa2off(kvm_t *kd, paddr_t pa)
73 {
74 	_kvm_err(kd, 0, "pa2off not yet implemented!");
75 	return (0);
76 }
77