4 * The contents of this file are subject to the terms of the
5 * Common Development and Distribution License (the "License").
6 * You may not use this file except in compliance with the License.
7 *
8 * You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
9 * or http://www.opensolaris.org/os/licensing.
10 * See the License for the specific language governing permissions
11 * and limitations under the License.
12 *
13 * When distributing Covered Code, include this CDDL HEADER in each
14 * file and include the License file at usr/src/OPENSOLARIS.LICENSE.
15 * If applicable, add the following below this CDDL HEADER, with the
16 * fields enclosed by brackets "[]" replaced with your own identifying
17 * information: Portions Copyright [yyyy] [name of copyright owner]
18 *
19 * CDDL HEADER END
20 */
21 /*
22 * Copyright 2008 Sun Microsystems, Inc. All rights reserved.
23 * Use is subject to license terms.
24 */
25
26 #pragma ident "%Z%%M% %I% %E% SMI"
27
28 /*
29 * Libkvm Kernel Target SPARC v7 component
30 *
31 * This file provides the ISA-dependent portion of the libkvm kernel target.
32 * For more details on the implementation refer to mdb_kvm.c.
33 */
34
35 #include <sys/types.h>
36 #include <sys/machtypes.h>
37 #include <sys/regset.h>
38 #include <sys/frame.h>
39 #include <sys/stack.h>
40 #include <sys/sysmacros.h>
41 #include <sys/panic.h>
42 #include <strings.h>
43
44 #include <mdb/mdb_target_impl.h>
45 #include <mdb/mdb_disasm.h>
46 #include <mdb/mdb_modapi.h>
47 #include <mdb/mdb_conf.h>
387 kt_pread, /* t_pread */
388 kt_pwrite, /* t_pwrite */
389 kt_fread, /* t_fread */
390 kt_fwrite, /* t_fwrite */
391 (ssize_t (*)()) mdb_tgt_notsup, /* t_ioread */
392 (ssize_t (*)()) mdb_tgt_notsup, /* t_iowrite */
393 kt_vtop, /* t_vtop */
394 kt_lookup_by_name, /* t_lookup_by_name */
395 kt_lookup_by_addr, /* t_lookup_by_addr */
396 kt_symbol_iter, /* t_symbol_iter */
397 kt_mapping_iter, /* t_mapping_iter */
398 kt_object_iter, /* t_object_iter */
399 kt_addr_to_map, /* t_addr_to_map */
400 kt_name_to_map, /* t_name_to_map */
401 kt_addr_to_ctf, /* t_addr_to_ctf */
402 kt_name_to_ctf, /* t_name_to_ctf */
403 kt_status, /* t_status */
404 (int (*)()) mdb_tgt_notsup, /* t_run */
405 (int (*)()) mdb_tgt_notsup, /* t_step */
406 (int (*)()) mdb_tgt_notsup, /* t_step_out */
407 (int (*)()) mdb_tgt_notsup, /* t_step_branch */
408 (int (*)()) mdb_tgt_notsup, /* t_next */
409 (int (*)()) mdb_tgt_notsup, /* t_cont */
410 (int (*)()) mdb_tgt_notsup, /* t_signal */
411 (int (*)()) mdb_tgt_null, /* t_add_vbrkpt */
412 (int (*)()) mdb_tgt_null, /* t_add_sbrkpt */
413 (int (*)()) mdb_tgt_null, /* t_add_pwapt */
414 (int (*)()) mdb_tgt_null, /* t_add_vwapt */
415 (int (*)()) mdb_tgt_null, /* t_add_iowapt */
416 (int (*)()) mdb_tgt_null, /* t_add_sysenter */
417 (int (*)()) mdb_tgt_null, /* t_add_sysexit */
418 (int (*)()) mdb_tgt_null, /* t_add_signal */
419 (int (*)()) mdb_tgt_null, /* t_add_fault */
420 kt_getareg, /* t_getareg */
421 kt_putareg, /* t_putareg */
422 kt_stack_iter, /* t_stack_iter */
423 (int (*)()) mdb_tgt_notsup /* t_auxv */
424 };
425
426 void
427 kt_sparcv7_init(mdb_tgt_t *t)
|
4 * The contents of this file are subject to the terms of the
5 * Common Development and Distribution License (the "License").
6 * You may not use this file except in compliance with the License.
7 *
8 * You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
9 * or http://www.opensolaris.org/os/licensing.
10 * See the License for the specific language governing permissions
11 * and limitations under the License.
12 *
13 * When distributing Covered Code, include this CDDL HEADER in each
14 * file and include the License file at usr/src/OPENSOLARIS.LICENSE.
15 * If applicable, add the following below this CDDL HEADER, with the
16 * fields enclosed by brackets "[]" replaced with your own identifying
17 * information: Portions Copyright [yyyy] [name of copyright owner]
18 *
19 * CDDL HEADER END
20 */
21 /*
22 * Copyright 2008 Sun Microsystems, Inc. All rights reserved.
23 * Use is subject to license terms.
24 *
25 * Copyright 2018 Joyent, Inc.
26 */
27
28 /*
29 * Libkvm Kernel Target SPARC v7 component
30 *
31 * This file provides the ISA-dependent portion of the libkvm kernel target.
32 * For more details on the implementation refer to mdb_kvm.c.
33 */
34
35 #include <sys/types.h>
36 #include <sys/machtypes.h>
37 #include <sys/regset.h>
38 #include <sys/frame.h>
39 #include <sys/stack.h>
40 #include <sys/sysmacros.h>
41 #include <sys/panic.h>
42 #include <strings.h>
43
44 #include <mdb/mdb_target_impl.h>
45 #include <mdb/mdb_disasm.h>
46 #include <mdb/mdb_modapi.h>
47 #include <mdb/mdb_conf.h>
387 kt_pread, /* t_pread */
388 kt_pwrite, /* t_pwrite */
389 kt_fread, /* t_fread */
390 kt_fwrite, /* t_fwrite */
391 (ssize_t (*)()) mdb_tgt_notsup, /* t_ioread */
392 (ssize_t (*)()) mdb_tgt_notsup, /* t_iowrite */
393 kt_vtop, /* t_vtop */
394 kt_lookup_by_name, /* t_lookup_by_name */
395 kt_lookup_by_addr, /* t_lookup_by_addr */
396 kt_symbol_iter, /* t_symbol_iter */
397 kt_mapping_iter, /* t_mapping_iter */
398 kt_object_iter, /* t_object_iter */
399 kt_addr_to_map, /* t_addr_to_map */
400 kt_name_to_map, /* t_name_to_map */
401 kt_addr_to_ctf, /* t_addr_to_ctf */
402 kt_name_to_ctf, /* t_name_to_ctf */
403 kt_status, /* t_status */
404 (int (*)()) mdb_tgt_notsup, /* t_run */
405 (int (*)()) mdb_tgt_notsup, /* t_step */
406 (int (*)()) mdb_tgt_notsup, /* t_step_out */
407 (int (*)()) mdb_tgt_notsup, /* t_next */
408 (int (*)()) mdb_tgt_notsup, /* t_cont */
409 (int (*)()) mdb_tgt_notsup, /* t_signal */
410 (int (*)()) mdb_tgt_null, /* t_add_vbrkpt */
411 (int (*)()) mdb_tgt_null, /* t_add_sbrkpt */
412 (int (*)()) mdb_tgt_null, /* t_add_pwapt */
413 (int (*)()) mdb_tgt_null, /* t_add_vwapt */
414 (int (*)()) mdb_tgt_null, /* t_add_iowapt */
415 (int (*)()) mdb_tgt_null, /* t_add_sysenter */
416 (int (*)()) mdb_tgt_null, /* t_add_sysexit */
417 (int (*)()) mdb_tgt_null, /* t_add_signal */
418 (int (*)()) mdb_tgt_null, /* t_add_fault */
419 kt_getareg, /* t_getareg */
420 kt_putareg, /* t_putareg */
421 kt_stack_iter, /* t_stack_iter */
422 (int (*)()) mdb_tgt_notsup /* t_auxv */
423 };
424
425 void
426 kt_sparcv7_init(mdb_tgt_t *t)
|