xref: /openbsd-src/lib/libkvm/kvm_m88k.c (revision a28daedfc357b214be5c701aa8ba8adb29a7f1c2)
1 /*	$OpenBSD: kvm_m88k.c,v 1.4 2006/03/20 15:11:48 mickey 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/user.h>
33 #include <sys/proc.h>
34 #include <sys/stat.h>
35 #include <unistd.h>
36 #include <stdlib.h>
37 #include <nlist.h>
38 #include <kvm.h>
39 
40 #include <uvm/uvm_extern.h>
41 
42 #include <limits.h>
43 #include <db.h>
44 
45 #include "kvm_private.h"
46 
47 void
48 _kvm_freevtop(kvm_t *kd)
49 {
50 	if (kd->vmst != NULL) {
51 		free(kd->vmst);
52 		kd->vmst = NULL;
53 	}
54 }
55 
56 int
57 _kvm_initvtop(kvm_t *kd)
58 {
59 
60 	return (0);
61 }
62 
63 int
64 _kvm_kvatop(kvm_t *kd, u_long va, paddr_t *pa)
65 {
66 
67 	/* don't forget k0seg translations! */
68 	_kvm_err(kd, 0, "vatop not yet implemented!");
69 	return (0);
70 }
71 
72 off_t
73 _kvm_pa2off(kvm_t *kd, paddr_t pa)
74 {
75 	_kvm_err(kd, 0, "pa2off not yet implemented!");
76 	return (0);
77 }
78