1 /* $NetBSD: macho_machdep.h,v 1.1 2002/10/30 06:41:45 manu Exp $ */
4 * Copyright (c) 2002 The NetBSD Foundation, Inc.
7 * This code is derived from software contributed to The NetBSD Foundation
10 * Redistribution and use in source and binary forms, with or without
11 * modification, are permitted provided that the following conditions
13 * 1. Redistributions of source code must retain the above copyright
14 * notice, this list of conditions and the following disclaimer.
15 * 2. Redistributions in binary form must reproduce the above copyright
16 * notice, this list of conditions and the following disclaimer in the
17 * documentation and/or other materials provided with the distribution.
19 * THIS SOFTWARE IS PROVIDED BY THE NETBSD FOUNDATION, INC. AND CONTRIBUTORS
20 * ``AS IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED
21 * TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
22 * PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE FOUNDATION OR CONTRIBUTORS
23 * BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
24 * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
25 * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
26 * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
27 * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
28 * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
29 * POSSIBILITY OF SUCH DAMAGE.
32 #ifndef _POWERPC_MACHO_MACHDEP_H_
33 #define _POWERPC_MACHO_MACHDEP_H_
35 /* From Darwin's xnu/osfmk/mach/ppc/thread_status.h (s/ppc/powerpc/) */
36 #define MACHO_POWERPC_THREAD_STATE 1
38 struct exec_macho_powerpc_thread_state
{
81 #define MACHO_POWERPC_NEW_THREAD_STATE 1
84 * From Darwin's xnu/osfmk/ppc/savearea.h
85 * struct exec_macho_powerpc_saved_state is called struct savearea there.
87 struct exec_macho_powerpc_saved_state
{
88 struct exec_macho_powerpc_savearea_comm
{
89 struct exec_macho_powerpc_saved_state
*save_prev
;
90 unsigned int *sac_next
;
91 unsigned int *sac_prev
;
92 unsigned int save_flags
;
93 unsigned int save_level
;
94 unsigned int save_time
[2];
95 struct thread_activation
*save_act
;
96 unsigned int sac_vrswap
;
97 unsigned int sac_alloc
;
98 unsigned int sac_flags
;
99 unsigned int save_misc0
;
100 unsigned int save_misc1
;
101 unsigned int save_misc2
;
102 unsigned int save_misc3
;
103 unsigned int save_misc4
;
104 unsigned int save_040
[8];
106 unsigned int save_060
[8];
107 unsigned int save_r0
;
108 unsigned int save_r1
;
109 unsigned int save_r2
;
110 unsigned int save_r3
;
111 unsigned int save_r4
;
112 unsigned int save_r5
;
113 unsigned int save_r6
;
114 unsigned int save_r7
;
115 unsigned int save_r8
;
116 unsigned int save_r9
;
117 unsigned int save_r10
;
118 unsigned int save_r11
;
119 unsigned int save_r12
;
120 unsigned int save_r13
;
121 unsigned int save_r14
;
122 unsigned int save_r15
;
123 unsigned int save_r16
;
124 unsigned int save_r17
;
125 unsigned int save_r18
;
126 unsigned int save_r19
;
127 unsigned int save_r20
;
128 unsigned int save_r21
;
129 unsigned int save_r22
;
130 unsigned int save_r23
;
131 unsigned int save_r24
;
132 unsigned int save_r25
;
133 unsigned int save_r26
;
134 unsigned int save_r27
;
135 unsigned int save_r28
;
136 unsigned int save_r29
;
137 unsigned int save_r30
;
138 unsigned int save_r31
;
139 unsigned int save_srr0
;
140 unsigned int save_srr1
;
141 unsigned int save_cr
;
142 unsigned int save_xer
;
143 unsigned int save_lr
;
144 unsigned int save_ctr
;
145 unsigned int save_dar
;
146 unsigned int save_dsisr
;
147 unsigned int save_vscr
[4];
148 unsigned int save_fpscrpad
;
149 unsigned int save_fpscr
;
150 unsigned int save_exception
;
151 unsigned int save_vrsave
;
152 unsigned int save_sr0
;
153 unsigned int save_sr1
;
154 unsigned int save_sr2
;
155 unsigned int save_sr3
;
156 unsigned int save_sr4
;
157 unsigned int save_sr5
;
158 unsigned int save_sr6
;
159 unsigned int save_sr7
;
160 unsigned int save_sr8
;
161 unsigned int save_sr9
;
162 unsigned int save_sr10
;
163 unsigned int save_sr11
;
164 unsigned int save_sr12
;
165 unsigned int save_sr13
;
166 unsigned int save_sr14
;
167 unsigned int save_sr15
;
168 unsigned int save_180
[8];
169 unsigned int save_1A0
[8];
170 unsigned int save_1C0
[8];
171 unsigned int save_1E0
[8];
172 unsigned int save_200
[8];
173 unsigned int save_220
[8];
174 unsigned int save_240
[8];
175 unsigned int save_260
[8];
178 #endif /* !_POWERPC_MACHO_MACHDEP_H_ */