]> CyberLeo.Net >> Repos - FreeBSD/releng/10.0.git/blob - lib/libkse/arch/powerpc/powerpc/assym.s
- Copy stable/10 (r259064) to releng/10.0 as part of the
[FreeBSD/releng/10.0.git] / lib / libkse / arch / powerpc / powerpc / assym.s
1 /*
2  * Copyright (c) 2004 Peter Grehan.
3  * All rights reserved.
4  *
5  * Redistribution and use in source and binary forms, with or without
6  * modification, are permitted provided that the following conditions
7  * are met:
8  * 1. Redistributions of source code must retain the above copyright
9  *    notice, this list of conditions and the following disclaimer.
10  * 2. Redistributions in binary form must reproduce the above copyright
11  *    notice, this list of conditions and the following disclaimer in the
12  *    documentation and/or other materials provided with the distribution.
13  *
14  * THIS SOFTWARE IS PROVIDED BY THE AUTHOR AND CONTRIBUTORS ``AS IS'' AND
15  * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
16  * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
17  * ARE DISCLAIMED.  IN NO EVENT SHALL THE AUTHOR OR CONTRIBUTORS BE LIABLE
18  * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
19  * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
20  * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
21  * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
22  * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
23  * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
24  * SUCH DAMAGE.
25  *
26  * $FreeBSD$
27  */
28
29 /*
30  * Struct offsets for version 0x1 of the mcontext struct.
31  * Generated with
32  *   cc -c assym.c
33  *   ${SYSSRC}/kern/genassym.sh assym.o > assym_syms.s
34  *   hand-edit output
35  */
36 #define _MC_VERSION     0x1
37 #define _MC_VERSION_KSE 0xee
38 #define _MC_FP_VALID    0x1
39
40 #define _MC_VERS        0x0
41 #define _MC_FLAGS       0x4
42
43 #define _MC_R0  0x298
44 #define _MC_R1  0x21c
45 #define _MC_R2  0x220
46 #define _MC_R3  0x224
47 #define _MC_R4  0x228
48 #define _MC_R5  0x22c
49 #define _MC_R6  0x230
50 #define _MC_R7  0x234
51 #define _MC_R8  0x238
52 #define _MC_R9  0x23c
53 #define _MC_R10 0x240
54 #define _MC_R11 0x244
55 #define _MC_R12 0x248
56 #define _MC_R13 0x24c
57 #define _MC_R14 0x250
58 #define _MC_R15 0x254
59 #define _MC_R16 0x258
60 #define _MC_R17 0x25c
61 #define _MC_R18 0x260
62 #define _MC_R19 0x264
63 #define _MC_R20 0x268
64 #define _MC_R21 0x26c
65 #define _MC_R22 0x270
66 #define _MC_R23 0x274
67 #define _MC_R24 0x278
68 #define _MC_R25 0x27c
69 #define _MC_R26 0x280
70 #define _MC_R27 0x284
71 #define _MC_R28 0x288
72 #define _MC_R29 0x28c
73 #define _MC_R30 0x290
74 #define _MC_R31 0x294
75 #define _MC_LR  0x298
76 #define _MC_CR  0x29c
77 #define _MC_XER 0x2a0
78 #define _MC_CTR 0x2a4
79
80 #define _MC_FPSCR       0x3c0
81 #define _MC_F0  0x2c0
82 #define _MC_F1  0x2c8
83 #define _MC_F2  0x2d0
84 #define _MC_F3  0x2d8
85 #define _MC_F4  0x2e0
86 #define _MC_F5  0x2e8
87 #define _MC_F6  0x2f0
88 #define _MC_F7  0x2f8
89 #define _MC_F8  0x300
90 #define _MC_F9  0x308
91 #define _MC_F10 0x310
92 #define _MC_F11 0x318
93 #define _MC_F12 0x320
94 #define _MC_F13 0x328
95 #define _MC_F14 0x330
96 #define _MC_F15 0x338
97 #define _MC_F16 0x340
98 #define _MC_F17 0x348
99 #define _MC_F18 0x350
100 #define _MC_F19 0x358
101 #define _MC_F20 0x360
102 #define _MC_F21 0x368
103 #define _MC_F22 0x370
104 #define _MC_F23 0x378
105 #define _MC_F24 0x380
106 #define _MC_F25 0x388
107 #define _MC_F26 0x390
108 #define _MC_F27 0x398
109 #define _MC_F28 0x3a0
110 #define _MC_F29 0x3a8
111 #define _MC_F30 0x3b0
112 #define _MC_F31 0x3b8
113