]> git.saurik.com Git - apple/xnu.git/blob - osfmk/ddb/db_trap.h
xnu-792.13.8.tar.gz
[apple/xnu.git] / osfmk / ddb / db_trap.h
1 /*
2 * Copyright (c) 2000 Apple Computer, Inc. All rights reserved.
3 *
4 * @APPLE_LICENSE_OSREFERENCE_HEADER_START@
5 *
6 * This file contains Original Code and/or Modifications of Original Code
7 * as defined in and that are subject to the Apple Public Source License
8 * Version 2.0 (the 'License'). You may not use this file except in
9 * compliance with the License. The rights granted to you under the
10 * License may not be used to create, or enable the creation or
11 * redistribution of, unlawful or unlicensed copies of an Apple operating
12 * system, or to circumvent, violate, or enable the circumvention or
13 * violation of, any terms of an Apple operating system software license
14 * agreement.
15 *
16 * Please obtain a copy of the License at
17 * http://www.opensource.apple.com/apsl/ and read it before using this
18 * file.
19 *
20 * The Original Code and all software distributed under the License are
21 * distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER
22 * EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES,
23 * INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY,
24 * FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT.
25 * Please see the License for the specific language governing rights and
26 * limitations under the License.
27 *
28 * @APPLE_LICENSE_OSREFERENCE_HEADER_END@
29 */
30 /*
31 * @OSF_COPYRIGHT@
32 */
33 /*
34 * HISTORY
35 *
36 * Revision 1.1.1.1 1998/09/22 21:05:48 wsanchez
37 * Import of Mac OS X kernel (~semeria)
38 *
39 * Revision 1.1.1.1 1998/03/07 02:26:09 wsanchez
40 * Import of OSF Mach kernel (~mburg)
41 *
42 * Revision 1.1.6.1 1994/09/23 01:22:27 ezf
43 * change marker to not FREE
44 * [1994/09/22 21:11:20 ezf]
45 *
46 * Revision 1.1.2.4 1993/09/17 21:34:42 robert
47 * change marker to OSF_FREE_COPYRIGHT
48 * [1993/09/17 21:27:27 robert]
49 *
50 * Revision 1.1.2.3 1993/08/03 18:21:39 rod
51 * ANSI prototypes: prototype thread_kdb_return(). CR #9523.
52 * [1993/08/03 13:06:06 rod]
53 *
54 * Revision 1.1.2.2 1993/07/27 18:28:24 elliston
55 * Add ANSI prototypes. CR #9523.
56 * [1993/07/27 18:13:18 elliston]
57 *
58 * $EndLog$
59 */
60
61 #ifndef _DDB_DB_TRAP_H_
62 #define _DDB_DB_TRAP_H_
63
64 #include <mach/boolean.h>
65
66
67 /* Prototypes for functions exported by this module.
68 */
69
70 void db_task_trap(
71 int type,
72 int code,
73 boolean_t user_space);
74
75 void db_trap(
76 int type,
77 int code);
78
79 /* Other exported prototypes
80 */
81
82 void thread_kdb_return(void);
83
84 #endif /* !_DDB_DB_TRAP_H_ */