]>
Commit | Line | Data |
---|---|---|
6601e61a | 1 | /* |
2d21ac55 | 2 | * Copyright (c) 2003-2007 Apple Inc. All rights reserved. |
6601e61a | 3 | * |
2d21ac55 | 4 | * @APPLE_OSREFERENCE_LICENSE_HEADER_START@ |
6601e61a | 5 | * |
2d21ac55 A |
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 License | |
10 | * may not be used to create, or enable the creation or redistribution of, | |
11 | * unlawful or unlicensed copies of an Apple operating system, or to | |
12 | * circumvent, violate, or enable the circumvention or violation of, any | |
13 | * terms of an Apple operating system software license agreement. | |
6601e61a | 14 | * |
2d21ac55 A |
15 | * Please obtain a copy of the License at |
16 | * http://www.opensource.apple.com/apsl/ and read it before using this file. | |
17 | * | |
18 | * The Original Code and all software distributed under the License are | |
19 | * distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER | |
6601e61a A |
20 | * EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES, |
21 | * INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY, | |
2d21ac55 A |
22 | * FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT. |
23 | * Please see the License for the specific language governing rights and | |
24 | * limitations under the License. | |
6601e61a | 25 | * |
2d21ac55 | 26 | * @APPLE_OSREFERENCE_LICENSE_HEADER_END@ |
6601e61a A |
27 | */ |
28 | ||
29 | #ifndef _PPC_CHUD_XNU_PRIVATE_H_ | |
30 | #define _PPC_CHUD_XNU_PRIVATE_H_ | |
31 | ||
b0d623f7 | 32 | #if 0 |
6601e61a | 33 | #pragma mark **** thread **** |
b0d623f7 | 34 | #endif |
0c530ab8 | 35 | // ***************************************************************************** |
6601e61a | 36 | // thread |
0c530ab8 A |
37 | // ***************************************************************************** |
38 | extern kern_return_t chudxnu_copy_savearea_to_threadstate( | |
39 | thread_flavor_t flavor, | |
40 | thread_state_t tstate, | |
41 | mach_msg_type_number_t *count, | |
42 | struct savearea *sv); | |
6601e61a | 43 | |
0c530ab8 A |
44 | extern kern_return_t chudxnu_copy_threadstate_to_savearea( |
45 | struct savearea *sv, | |
46 | thread_flavor_t flavor, | |
47 | thread_state_t tstate, | |
48 | mach_msg_type_number_t *count); | |
49 | ||
b0d623f7 | 50 | #if 0 |
0c530ab8 | 51 | #pragma mark **** cpu timer **** |
b0d623f7 | 52 | #endif |
0c530ab8 A |
53 | typedef struct { |
54 | timer_call_data_t cpu_timer_call; | |
55 | uint64_t t_deadline; | |
56 | chudxnu_cpu_timer_callback_func_t cpu_timer_callback_fn; | |
57 | } chudcpu_data_t; | |
6601e61a A |
58 | |
59 | #endif /* _PPC_CHUD_XNU_PRIVATE_H_ */ |