xref: /netbsd-src/usr.sbin/crash/arch/generic.c (revision f55073df88c0d822353ff032a9fbbfa6f8c41db8)
1*f55073dfSriastradh /*	$NetBSD: generic.c,v 1.2 2023/04/12 17:53:32 riastradh Exp $	*/
2101a9782Sad 
3101a9782Sad /*-
4101a9782Sad  * Copyright (c) 2009 The NetBSD Foundation, Inc.
5101a9782Sad  * All rights reserved.
6101a9782Sad  *
7101a9782Sad  * This code is derived from software contributed to The NetBSD Foundation
8101a9782Sad  * by Andrew Doran.
9101a9782Sad  *
10101a9782Sad  * Redistribution and use in source and binary forms, with or without
11101a9782Sad  * modification, are permitted provided that the following conditions
12101a9782Sad  * are met:
13101a9782Sad  * 1. Redistributions of source code must retain the above copyright
14101a9782Sad  *    notice, this list of conditions and the following disclaimer.
15101a9782Sad  * 2. Redistributions in binary form must reproduce the above copyright
16101a9782Sad  *    notice, this list of conditions and the following disclaimer in the
17101a9782Sad  *    documentation and/or other materials provided with the distribution.
18101a9782Sad  *
19101a9782Sad  * THIS SOFTWARE IS PROVIDED BY THE NETBSD FOUNDATION, INC. AND CONTRIBUTORS
20101a9782Sad  * ``AS IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED
21101a9782Sad  * TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
22101a9782Sad  * PURPOSE ARE DISCLAIMED.  IN NO EVENT SHALL THE FOUNDATION OR CONTRIBUTORS
23101a9782Sad  * BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
24101a9782Sad  * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
25101a9782Sad  * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
26101a9782Sad  * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
27101a9782Sad  * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
28101a9782Sad  * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
29101a9782Sad  * POSSIBILITY OF SUCH DAMAGE.
30101a9782Sad  */
31101a9782Sad 
32101a9782Sad #include <sys/cdefs.h>
33101a9782Sad #ifndef lint
34*f55073dfSriastradh __RCSID("$NetBSD: generic.c,v 1.2 2023/04/12 17:53:32 riastradh Exp $");
35101a9782Sad #endif /* not lint */
36101a9782Sad 
37*f55073dfSriastradh #include <sys/types.h>
38*f55073dfSriastradh 
39101a9782Sad #include <ddb/ddb.h>
40101a9782Sad 
41101a9782Sad #include <kvm.h>
42101a9782Sad #include <nlist.h>
43101a9782Sad #include <err.h>
44101a9782Sad #include <stdlib.h>
45101a9782Sad 
46101a9782Sad #include "extern.h"
47101a9782Sad 
48101a9782Sad void
db_mach_init(kvm_t * kd)49101a9782Sad db_mach_init(kvm_t *kd)
50101a9782Sad {
51101a9782Sad 
52101a9782Sad }
53