xref: /openbsd-src/lib/libkvm/kvm_m88k.c (revision 46035553bfdd96e63c94e32da0210227ec2e3cf1)
1 /*	$OpenBSD: kvm_m88k.c,v 1.6 2015/12/19 18:40:30 mmcc 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 	free(kd->vmst);
50 	kd->vmst = NULL;
51 }
52 
53 int
54 _kvm_initvtop(kvm_t *kd)
55 {
56 
57 	return (0);
58 }
59 
60 int
61 _kvm_kvatop(kvm_t *kd, u_long va, paddr_t *pa)
62 {
63 
64 	/* don't forget k0seg translations! */
65 	_kvm_err(kd, 0, "vatop not yet implemented!");
66 	return (0);
67 }
68 
69 off_t
70 _kvm_pa2off(kvm_t *kd, paddr_t pa)
71 {
72 	_kvm_err(kd, 0, "pa2off not yet implemented!");
73 	return (0);
74 }
75