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