xref: /onnv-gate/usr/src/uts/i86xpv/sys/xpv_panic.h (revision 5084:7d838c5c0eed)
1*5084Sjohnlev /*
2*5084Sjohnlev  * CDDL HEADER START
3*5084Sjohnlev  *
4*5084Sjohnlev  * The contents of this file are subject to the terms of the
5*5084Sjohnlev  * Common Development and Distribution License (the "License").
6*5084Sjohnlev  * You may not use this file except in compliance with the License.
7*5084Sjohnlev  *
8*5084Sjohnlev  * You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
9*5084Sjohnlev  * or http://www.opensolaris.org/os/licensing.
10*5084Sjohnlev  * See the License for the specific language governing permissions
11*5084Sjohnlev  * and limitations under the License.
12*5084Sjohnlev  *
13*5084Sjohnlev  * When distributing Covered Code, include this CDDL HEADER in each
14*5084Sjohnlev  * file and include the License file at usr/src/OPENSOLARIS.LICENSE.
15*5084Sjohnlev  * If applicable, add the following below this CDDL HEADER, with the
16*5084Sjohnlev  * fields enclosed by brackets "[]" replaced with your own identifying
17*5084Sjohnlev  * information: Portions Copyright [yyyy] [name of copyright owner]
18*5084Sjohnlev  *
19*5084Sjohnlev  * CDDL HEADER END
20*5084Sjohnlev  */
21*5084Sjohnlev /*
22*5084Sjohnlev  * Copyright 2007 Sun Microsystems, Inc.  All rights reserved.
23*5084Sjohnlev  * Use is subject to license terms.
24*5084Sjohnlev  */
25*5084Sjohnlev 
26*5084Sjohnlev #ifndef _SYS_XPV_PANIC_H
27*5084Sjohnlev #define	_SYS_XPV_PANIC_H
28*5084Sjohnlev 
29*5084Sjohnlev #pragma ident	"%Z%%M%	%I%	%E% SMI"
30*5084Sjohnlev 
31*5084Sjohnlev #ifdef __cplusplus
32*5084Sjohnlev extern "C" {
33*5084Sjohnlev #endif
34*5084Sjohnlev 
35*5084Sjohnlev extern void xpv_panic_sti();
36*5084Sjohnlev extern void xpv_panic_halt();
37*5084Sjohnlev extern void xpv_panic_getcrs(ulong_t *);
38*5084Sjohnlev extern void xpv_panic_setcr3(ulong_t);
39*5084Sjohnlev extern void xpv_panic_reload_cr3();
40*5084Sjohnlev extern ulong_t xpv_panic_resetgs();
41*5084Sjohnlev extern void xpv_panic_init();
42*5084Sjohnlev extern void xpv_panic_hdlr();
43*5084Sjohnlev extern void *xpv_traceback(void *);
44*5084Sjohnlev 
45*5084Sjohnlev extern void xpv_div0trap(), xpv_dbgtrap(), xpv_nmiint(), xpv_brktrap();
46*5084Sjohnlev extern void xpv_ovflotrap(), xpv_boundstrap(), xpv_invoptrap();
47*5084Sjohnlev extern void xpv_ndptrap(), xpv_syserrtrap(), xpv_invaltrap();
48*5084Sjohnlev extern void xpv_invtsstrap(), xpv_segnptrap(), xpv_stktrap();
49*5084Sjohnlev extern void xpv_gptrap(), xpv_pftrap(), xpv_ndperr();
50*5084Sjohnlev extern void xpv_overrun(), xpv_resvtrap();
51*5084Sjohnlev extern void xpv_achktrap(), xpv_mcetrap();
52*5084Sjohnlev extern void xpv_xmtrap(), xpv_timer_trap(), xpv_surprise_intr();
53*5084Sjohnlev 
54*5084Sjohnlev extern int dump_xpv_addr();
55*5084Sjohnlev extern void dump_xpv_pfn();
56*5084Sjohnlev extern int dump_xpv_data(void *);
57*5084Sjohnlev 
58*5084Sjohnlev #ifdef __cplusplus
59*5084Sjohnlev }
60*5084Sjohnlev #endif
61*5084Sjohnlev 
62*5084Sjohnlev #endif	/* _SYS_XPV_PANIC_H */
63