1132400Sgrehan/*
2132400Sgrehan * Copyright (c) 2004 Peter Grehan.
3132400Sgrehan * All rights reserved.
4132400Sgrehan *
5132400Sgrehan * Redistribution and use in source and binary forms, with or without
6132400Sgrehan * modification, are permitted provided that the following conditions
7132400Sgrehan * are met:
8132400Sgrehan * 1. Redistributions of source code must retain the above copyright
9132400Sgrehan *    notice, this list of conditions and the following disclaimer.
10132400Sgrehan * 2. Redistributions in binary form must reproduce the above copyright
11132400Sgrehan *    notice, this list of conditions and the following disclaimer in the
12132400Sgrehan *    documentation and/or other materials provided with the distribution.
13132400Sgrehan *
14132400Sgrehan * THIS SOFTWARE IS PROVIDED BY THE AUTHOR AND CONTRIBUTORS ``AS IS'' AND
15132400Sgrehan * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
16132400Sgrehan * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
17132400Sgrehan * ARE DISCLAIMED.  IN NO EVENT SHALL THE AUTHOR OR CONTRIBUTORS BE LIABLE
18132400Sgrehan * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
19132400Sgrehan * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
20132400Sgrehan * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
21132400Sgrehan * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
22132400Sgrehan * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
23132400Sgrehan * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
24132400Sgrehan * SUCH DAMAGE.
25132400Sgrehan *
26132400Sgrehan * $FreeBSD$
27132400Sgrehan */
28132400Sgrehan
29132400Sgrehan/*
30132400Sgrehan * Struct offsets for version 0x1 of the mcontext struct.
31132400Sgrehan * Generated with
32132400Sgrehan *   cc -c assym.c
33132400Sgrehan *   ${SYSSRC}/kern/genassym.sh assym.o > assym_syms.s
34132400Sgrehan *   hand-edit output
35132400Sgrehan */
36132400Sgrehan#define _MC_VERSION     0x1
37132400Sgrehan#define _MC_VERSION_KSE 0xee
38132400Sgrehan#define _MC_FP_VALID    0x1
39132400Sgrehan
40132400Sgrehan#define _MC_VERS        0x0
41132400Sgrehan#define _MC_FLAGS       0x4
42132400Sgrehan
43132400Sgrehan#define _MC_R0	0x298
44132400Sgrehan#define _MC_R1  0x21c
45132400Sgrehan#define _MC_R2  0x220
46132400Sgrehan#define _MC_R3  0x224
47132400Sgrehan#define _MC_R4  0x228
48132400Sgrehan#define _MC_R5  0x22c
49132400Sgrehan#define _MC_R6  0x230
50132400Sgrehan#define _MC_R7  0x234
51132400Sgrehan#define _MC_R8  0x238
52132400Sgrehan#define _MC_R9  0x23c
53132400Sgrehan#define _MC_R10 0x240
54132400Sgrehan#define _MC_R11 0x244
55132400Sgrehan#define _MC_R12 0x248
56132400Sgrehan#define _MC_R13 0x24c
57132400Sgrehan#define _MC_R14 0x250
58132400Sgrehan#define _MC_R15 0x254
59132400Sgrehan#define _MC_R16 0x258
60132400Sgrehan#define _MC_R17 0x25c
61132400Sgrehan#define _MC_R18 0x260
62132400Sgrehan#define _MC_R19 0x264
63132400Sgrehan#define _MC_R20 0x268
64132400Sgrehan#define _MC_R21 0x26c
65132400Sgrehan#define _MC_R22 0x270
66132400Sgrehan#define _MC_R23 0x274
67132400Sgrehan#define _MC_R24 0x278
68132400Sgrehan#define _MC_R25 0x27c
69132400Sgrehan#define _MC_R26 0x280
70132400Sgrehan#define _MC_R27 0x284
71132400Sgrehan#define _MC_R28 0x288
72132400Sgrehan#define _MC_R29 0x28c
73132400Sgrehan#define _MC_R30 0x290
74132400Sgrehan#define _MC_R31 0x294
75132400Sgrehan#define _MC_LR  0x298
76132400Sgrehan#define _MC_CR  0x29c
77132400Sgrehan#define _MC_XER 0x2a0
78132400Sgrehan#define _MC_CTR 0x2a4
79132400Sgrehan
80132400Sgrehan#define _MC_FPSCR       0x3c0
81132400Sgrehan#define _MC_F0  0x2c0
82132400Sgrehan#define _MC_F1  0x2c8
83132400Sgrehan#define _MC_F2  0x2d0
84132400Sgrehan#define _MC_F3  0x2d8
85132400Sgrehan#define _MC_F4  0x2e0
86132400Sgrehan#define _MC_F5  0x2e8
87132400Sgrehan#define _MC_F6  0x2f0
88132400Sgrehan#define _MC_F7  0x2f8
89132400Sgrehan#define _MC_F8  0x300
90132400Sgrehan#define _MC_F9  0x308
91132400Sgrehan#define _MC_F10 0x310
92132400Sgrehan#define _MC_F11 0x318
93132400Sgrehan#define _MC_F12 0x320
94132400Sgrehan#define _MC_F13 0x328
95132400Sgrehan#define _MC_F14 0x330
96132400Sgrehan#define _MC_F15 0x338
97132400Sgrehan#define _MC_F16 0x340
98132400Sgrehan#define _MC_F17 0x348
99132400Sgrehan#define _MC_F18 0x350
100132400Sgrehan#define _MC_F19 0x358
101132400Sgrehan#define _MC_F20 0x360
102132400Sgrehan#define _MC_F21 0x368
103132400Sgrehan#define _MC_F22 0x370
104132400Sgrehan#define _MC_F23 0x378
105132400Sgrehan#define _MC_F24 0x380
106132400Sgrehan#define _MC_F25 0x388
107132400Sgrehan#define _MC_F26 0x390
108132400Sgrehan#define _MC_F27 0x398
109132400Sgrehan#define _MC_F28 0x3a0
110132400Sgrehan#define _MC_F29 0x3a8
111132400Sgrehan#define _MC_F30 0x3b0
112132400Sgrehan#define _MC_F31 0x3b8
113132400Sgrehan
114