xref: /xnu-10063.101.15/tests/excserver_backtrace.defs (revision 94d3b452840153a99b38a3a9659680b2a006908e)
1*94d3b452SApple OSS Distributions/*
2*94d3b452SApple OSS Distributions * Copyright (c) 2006 Apple Computer, Inc. All rights reserved.
3*94d3b452SApple OSS Distributions *
4*94d3b452SApple OSS Distributions * @APPLE_OSREFERENCE_LICENSE_HEADER_START@
5*94d3b452SApple OSS Distributions *
6*94d3b452SApple OSS Distributions * This file contains Original Code and/or Modifications of Original Code
7*94d3b452SApple OSS Distributions * as defined in and that are subject to the Apple Public Source License
8*94d3b452SApple OSS Distributions * Version 2.0 (the 'License'). You may not use this file except in
9*94d3b452SApple OSS Distributions * compliance with the License. The rights granted to you under the License
10*94d3b452SApple OSS Distributions * may not be used to create, or enable the creation or redistribution of,
11*94d3b452SApple OSS Distributions * unlawful or unlicensed copies of an Apple operating system, or to
12*94d3b452SApple OSS Distributions * circumvent, violate, or enable the circumvention or violation of, any
13*94d3b452SApple OSS Distributions * terms of an Apple operating system software license agreement.
14*94d3b452SApple OSS Distributions *
15*94d3b452SApple OSS Distributions * Please obtain a copy of the License at
16*94d3b452SApple OSS Distributions * http://www.opensource.apple.com/apsl/ and read it before using this file.
17*94d3b452SApple OSS Distributions *
18*94d3b452SApple OSS Distributions * The Original Code and all software distributed under the License are
19*94d3b452SApple OSS Distributions * distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER
20*94d3b452SApple OSS Distributions * EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES,
21*94d3b452SApple OSS Distributions * INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY,
22*94d3b452SApple OSS Distributions * FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT.
23*94d3b452SApple OSS Distributions * Please see the License for the specific language governing rights and
24*94d3b452SApple OSS Distributions * limitations under the License.
25*94d3b452SApple OSS Distributions *
26*94d3b452SApple OSS Distributions * @APPLE_OSREFERENCE_LICENSE_HEADER_END@
27*94d3b452SApple OSS Distributions */
28*94d3b452SApple OSS Distributions/*
29*94d3b452SApple OSS Distributions * @OSF_COPYRIGHT@
30*94d3b452SApple OSS Distributions */
31*94d3b452SApple OSS Distributions/*
32*94d3b452SApple OSS Distributions * Mach Operating System
33*94d3b452SApple OSS Distributions * Copyright (c) 1991,1990,1989,1988,1987 Carnegie Mellon University
34*94d3b452SApple OSS Distributions * All Rights Reserved.
35*94d3b452SApple OSS Distributions *
36*94d3b452SApple OSS Distributions * Permission to use, copy, modify and distribute this software and its
37*94d3b452SApple OSS Distributions * documentation is hereby granted, provided that both the copyright
38*94d3b452SApple OSS Distributions * notice and this permission notice appear in all copies of the
39*94d3b452SApple OSS Distributions * software, derivative works or modified versions, and any portions
40*94d3b452SApple OSS Distributions * thereof, and that both notices appear in supporting documentation.
41*94d3b452SApple OSS Distributions *
42*94d3b452SApple OSS Distributions * CARNEGIE MELLON ALLOWS FREE USE OF THIS SOFTWARE IN ITS "AS IS"
43*94d3b452SApple OSS Distributions * CONDITION.  CARNEGIE MELLON DISCLAIMS ANY LIABILITY OF ANY KIND FOR
44*94d3b452SApple OSS Distributions * ANY DAMAGES WHATSOEVER RESULTING FROM THE USE OF THIS SOFTWARE.
45*94d3b452SApple OSS Distributions *
46*94d3b452SApple OSS Distributions * Carnegie Mellon requests users of this software to return to
47*94d3b452SApple OSS Distributions *
48*94d3b452SApple OSS Distributions *  Software Distribution Coordinator  or  [email protected]
49*94d3b452SApple OSS Distributions *  School of Computer Science
50*94d3b452SApple OSS Distributions *  Carnegie Mellon University
51*94d3b452SApple OSS Distributions *  Pittsburgh PA 15213-3890
52*94d3b452SApple OSS Distributions *
53*94d3b452SApple OSS Distributions * any improvements or extensions that they make and grant Carnegie Mellon
54*94d3b452SApple OSS Distributions * the rights to redistribute these changes.
55*94d3b452SApple OSS Distributions */
56*94d3b452SApple OSS Distributions/*
57*94d3b452SApple OSS Distributions */
58*94d3b452SApple OSS Distributions/*
59*94d3b452SApple OSS Distributions * Abstract:
60*94d3b452SApple OSS Distributions *	MiG definitions file for Mach exception interface.
61*94d3b452SApple OSS Distributions */
62*94d3b452SApple OSS Distributions
63*94d3b452SApple OSS Distributionssubsystem
64*94d3b452SApple OSS Distributions#if	KERNEL_USER
65*94d3b452SApple OSS Distributions	  KernelUser
66*94d3b452SApple OSS Distributions#endif
67*94d3b452SApple OSS Distributions#if	KERNEL_SERVER
68*94d3b452SApple OSS Distributions	  KernelServer
69*94d3b452SApple OSS Distributions#endif	/* KERNEL_SERVER */
70*94d3b452SApple OSS Distributions
71*94d3b452SApple OSS Distributions		     mach_exc 2405;
72*94d3b452SApple OSS Distributions
73*94d3b452SApple OSS Distributions#include <mach/std_types.defs>
74*94d3b452SApple OSS Distributions#include <mach/mach_types.defs>
75*94d3b452SApple OSS Distributions
76*94d3b452SApple OSS DistributionsServerPrefix catch_;
77*94d3b452SApple OSS Distributions
78*94d3b452SApple OSS Distributionstype mach_exception_data_t	= array[*:2] of int64_t;
79*94d3b452SApple OSS Distributionstype exception_type_t		= int;
80*94d3b452SApple OSS Distributions
81*94d3b452SApple OSS Distributionsroutine		mach_exception_raise(
82*94d3b452SApple OSS Distributions			exception_port	: mach_port_t;
83*94d3b452SApple OSS Distributions			thread		: mach_port_t;
84*94d3b452SApple OSS Distributions			task		: mach_port_t;
85*94d3b452SApple OSS Distributions			exception	: exception_type_t;
86*94d3b452SApple OSS Distributions			code		: mach_exception_data_t
87*94d3b452SApple OSS Distributions#if MACH_EXC_SERVER_SECTOKEN
88*94d3b452SApple OSS Distributions ;
89*94d3b452SApple OSS Distributions ServerSecToken stoken	: security_token_t
90*94d3b452SApple OSS Distributions#endif
91*94d3b452SApple OSS Distributions#if MACH_EXC_SERVER_AUDITTOKEN
92*94d3b452SApple OSS Distributions ;
93*94d3b452SApple OSS Distributions ServerAuditToken atoken: audit_token_t
94*94d3b452SApple OSS Distributions#endif
95*94d3b452SApple OSS Distributions			);
96*94d3b452SApple OSS Distributions
97*94d3b452SApple OSS Distributionsroutine		mach_exception_raise_state(
98*94d3b452SApple OSS Distributions			exception_port	: mach_port_t;
99*94d3b452SApple OSS Distributions			exception	: exception_type_t;
100*94d3b452SApple OSS Distributions			code		: mach_exception_data_t, const;
101*94d3b452SApple OSS Distributions		  inout flavor		: int;
102*94d3b452SApple OSS Distributions			old_state	: thread_state_t, const;
103*94d3b452SApple OSS Distributions		    out new_state	: thread_state_t
104*94d3b452SApple OSS Distributions#if MACH_EXC_SERVER_SECTOKEN
105*94d3b452SApple OSS Distributions ;
106*94d3b452SApple OSS Distributions ServerSecToken stoken	: security_token_t
107*94d3b452SApple OSS Distributions#endif
108*94d3b452SApple OSS Distributions#if MACH_EXC_SERVER_AUDITTOKEN
109*94d3b452SApple OSS Distributions ;
110*94d3b452SApple OSS Distributions ServerAuditToken atoken: audit_token_t
111*94d3b452SApple OSS Distributions#endif
112*94d3b452SApple OSS Distributions			);
113*94d3b452SApple OSS Distributions
114*94d3b452SApple OSS Distributionsroutine		mach_exception_raise_state_identity(
115*94d3b452SApple OSS Distributions			exception_port  : mach_port_t;
116*94d3b452SApple OSS Distributions			thread          : mach_port_t;
117*94d3b452SApple OSS Distributions			task            : mach_port_t;
118*94d3b452SApple OSS Distributions			exception       : exception_type_t;
119*94d3b452SApple OSS Distributions			code            : mach_exception_data_t;
120*94d3b452SApple OSS Distributions		  inout flavor          : int;
121*94d3b452SApple OSS Distributions			old_state       : thread_state_t;
122*94d3b452SApple OSS Distributions		    out new_state       : thread_state_t
123*94d3b452SApple OSS Distributions#if MACH_EXC_SERVER_SECTOKEN
124*94d3b452SApple OSS Distributions ;
125*94d3b452SApple OSS Distributions ServerSecToken stoken	: security_token_t
126*94d3b452SApple OSS Distributions#endif
127*94d3b452SApple OSS Distributions#if MACH_EXC_SERVER_AUDITTOKEN
128*94d3b452SApple OSS Distributions ;
129*94d3b452SApple OSS Distributions ServerAuditToken atoken: audit_token_t
130*94d3b452SApple OSS Distributions#endif
131*94d3b452SApple OSS Distributions			);
132*94d3b452SApple OSS Distributions
133*94d3b452SApple OSS Distributions#if MACH_EXC_SERVER_TASKIDTOKEN || ((KERNEL_USER || KERNEL_SERVER) && !SANDBOX_COMPILER)
134*94d3b452SApple OSS Distributionsroutine		mach_exception_raise_identity_protected(
135*94d3b452SApple OSS Distributions			exception_port	: mach_port_t;
136*94d3b452SApple OSS Distributions			thread_id	: uint64_t;
137*94d3b452SApple OSS Distributions			task_id_token_t	: mach_port_t;
138*94d3b452SApple OSS Distributions			exception	: exception_type_t;
139*94d3b452SApple OSS Distributions			code		: mach_exception_data_t
140*94d3b452SApple OSS Distributions#if MACH_EXC_SERVER_SECTOKEN
141*94d3b452SApple OSS Distributions ;
142*94d3b452SApple OSS Distributions ServerSecToken stoken	: security_token_t
143*94d3b452SApple OSS Distributions#endif
144*94d3b452SApple OSS Distributions#if MACH_EXC_SERVER_AUDITTOKEN
145*94d3b452SApple OSS Distributions ;
146*94d3b452SApple OSS Distributions ServerAuditToken atoken: audit_token_t
147*94d3b452SApple OSS Distributions#endif
148*94d3b452SApple OSS Distributions			);
149*94d3b452SApple OSS Distributions#else
150*94d3b452SApple OSS Distributions	skip;
151*94d3b452SApple OSS Distributions#endif /* MACH_EXC_SERVER_TASKIDTOKEN */
152*94d3b452SApple OSS Distributions
153*94d3b452SApple OSS Distributions#if MACH_EXC_SERVER_BACKTRACE || ((KERNEL_USER || KERNEL_SERVER) && !SANDBOX_COMPILER)
154*94d3b452SApple OSS Distributionsroutine		mach_exception_raise_backtrace(
155*94d3b452SApple OSS Distributions			exception_port	: mach_port_t;
156*94d3b452SApple OSS Distributions			kcdata_object_t	: mach_port_t;
157*94d3b452SApple OSS Distributions			exception	: exception_type_t;
158*94d3b452SApple OSS Distributions			code		: mach_exception_data_t
159*94d3b452SApple OSS Distributions#if MACH_EXC_SERVER_SECTOKEN
160*94d3b452SApple OSS Distributions ;
161*94d3b452SApple OSS Distributions ServerSecToken stoken	: security_token_t
162*94d3b452SApple OSS Distributions#endif
163*94d3b452SApple OSS Distributions#if MACH_EXC_SERVER_AUDITTOKEN
164*94d3b452SApple OSS Distributions ;
165*94d3b452SApple OSS Distributions ServerAuditToken atoken: audit_token_t
166*94d3b452SApple OSS Distributions#endif
167*94d3b452SApple OSS Distributions			);
168*94d3b452SApple OSS Distributions#else
169*94d3b452SApple OSS Distributions	skip;
170*94d3b452SApple OSS Distributions#endif /* MACH_EXC_SERVER_BACKTRACE */
171*94d3b452SApple OSS Distributions
172*94d3b452SApple OSS Distributions/* vim: set ft=c : */
173