Root/
Source at commit 1319 created 12 years 11 months ago. By meklort, Makefile update | |
---|---|
1 | /*␊ |
2 | * Copyright (c) 1999 Apple Computer, Inc. All rights reserved.␊ |
3 | *␊ |
4 | * @APPLE_LICENSE_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. Please obtain a copy of the License at␊ |
10 | * http://www.opensource.apple.com/apsl/ and read it before using this␊ |
11 | * file.␊ |
12 | * ␊ |
13 | * The Original Code and all software distributed under the License are␊ |
14 | * distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER␊ |
15 | * EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES,␊ |
16 | * INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY,␊ |
17 | * FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT.␊ |
18 | * Please see the License for the specific language governing rights and␊ |
19 | * limitations under the License.␊ |
20 | * ␊ |
21 | * @APPLE_LICENSE_HEADER_END@␊ |
22 | */␊ |
23 | #include <architecture/byte_order.h>␊ |
24 | #include <mach/i386/thread_status.h>␊ |
25 | ␊ |
26 | extern void swap_i386_thread_state(␊ |
27 | i386_thread_state_t *cpu,␊ |
28 | enum NXByteOrder target_byte_order);␊ |
29 | ␊ |
30 | /* current i386 thread states */␊ |
31 | #if i386_THREAD_STATE == 1␊ |
32 | extern void swap_i386_float_state(␊ |
33 | struct i386_float_state *fpu,␊ |
34 | enum NXByteOrder target_byte_order);␊ |
35 | ␊ |
36 | extern void swap_i386_exception_state(␊ |
37 | i386_exception_state_t *exc,␊ |
38 | enum NXByteOrder target_byte_order);␊ |
39 | #endif /* i386_THREAD_STATE == 1 */␊ |
40 | ␊ |
41 | /* i386 thread states on older releases */␊ |
42 | #if i386_THREAD_STATE == -1␊ |
43 | extern void swap_i386_thread_fpstate(␊ |
44 | i386_thread_fpstate_t *fpu,␊ |
45 | enum NXByteOrder target_byte_order);␊ |
46 | ␊ |
47 | extern void swap_i386_thread_exceptstate(␊ |
48 | i386_thread_exceptstate_t *exc,␊ |
49 | enum NXByteOrder target_byte_order);␊ |
50 | ␊ |
51 | extern void swap_i386_thread_cthreadstate(␊ |
52 | i386_thread_cthreadstate_t *user,␊ |
53 | enum NXByteOrder target_byte_order);␊ |
54 | #endif /* i386_THREAD_STATE == -1 */␊ |
55 | ␊ |
56 | #ifdef x86_THREAD_STATE64␊ |
57 | extern void swap_x86_thread_state64(␊ |
58 | x86_thread_state64_t *cpu,␊ |
59 | enum NXByteOrder target_byte_order);␊ |
60 | ␊ |
61 | extern void swap_x86_state_hdr(␊ |
62 | x86_state_hdr_t *hdr,␊ |
63 | enum NXByteOrder target_byte_order);␊ |
64 | ␊ |
65 | extern void swap_x86_float_state64(␊ |
66 | x86_float_state64_t *fpu,␊ |
67 | enum NXByteOrder target_byte_order);␊ |
68 | ␊ |
69 | extern void swap_x86_exception_state64(␊ |
70 | x86_exception_state64_t *exc,␊ |
71 | enum NXByteOrder target_byte_order);␊ |
72 | ␊ |
73 | extern void swap_x86_thread_state(␊ |
74 | x86_thread_state_t *cpu,␊ |
75 | enum NXByteOrder target_byte_order);␊ |
76 | ␊ |
77 | extern void swap_x86_float_state(␊ |
78 | x86_float_state_t *fpu,␊ |
79 | enum NXByteOrder target_byte_order);␊ |
80 | ␊ |
81 | extern void swap_x86_exception_state(␊ |
82 | x86_exception_state_t *exc,␊ |
83 | enum NXByteOrder target_byte_order);␊ |
84 | ␊ |
85 | extern void swap_x86_debug_state32(␊ |
86 | x86_debug_state32_t *debug,␊ |
87 | enum NXByteOrder target_byte_order);␊ |
88 | ␊ |
89 | extern void swap_x86_debug_state64(␊ |
90 | x86_debug_state64_t *debug,␊ |
91 | enum NXByteOrder target_byte_order);␊ |
92 | ␊ |
93 | extern void swap_x86_debug_state(␊ |
94 | x86_debug_state_t *debug,␊ |
95 | enum NXByteOrder target_byte_order);␊ |
96 | #endif /* x86_THREAD_STATE64 */␊ |
97 |