Import 2.3.1
[davej-history.git] / include / asm-mips / offset.h
blob6f7a5b0191be7470e3e82e7b7e804f1cc07f6365
1 /* DO NOT TOUCH, AUTOGENERATED BY OFFSET.C */
3 #ifndef _MIPS_OFFSET_H
4 #define _MIPS_OFFSET_H
6 /* MIPS pt_regs offsets. */
7 #define PT_R0 24
8 #define PT_R1 28
9 #define PT_R2 32
10 #define PT_R3 36
11 #define PT_R4 40
12 #define PT_R5 44
13 #define PT_R6 48
14 #define PT_R7 52
15 #define PT_R8 56
16 #define PT_R9 60
17 #define PT_R10 64
18 #define PT_R11 68
19 #define PT_R12 72
20 #define PT_R13 76
21 #define PT_R14 80
22 #define PT_R15 84
23 #define PT_R16 88
24 #define PT_R17 92
25 #define PT_R18 96
26 #define PT_R19 100
27 #define PT_R20 104
28 #define PT_R21 108
29 #define PT_R22 112
30 #define PT_R23 116
31 #define PT_R24 120
32 #define PT_R25 124
33 #define PT_R26 128
34 #define PT_R27 132
35 #define PT_R28 136
36 #define PT_R29 140
37 #define PT_R30 144
38 #define PT_R31 148
39 #define PT_LO 152
40 #define PT_HI 156
41 #define PT_EPC 160
42 #define PT_BVADDR 164
43 #define PT_STATUS 168
44 #define PT_CAUSE 172
45 #define PT_SIZE 176
47 /* MIPS task_struct offsets. */
48 #define TASK_STATE 0
49 #define TASK_FLAGS 4
50 #define TASK_SIGPENDING 8
51 #define TASK_NEED_RESCHED 20
52 #define TASK_COUNTER 24
53 #define TASK_PRIORITY 28
54 #define TASK_MM 928
56 /* MIPS specific thread_struct offsets. */
57 #define THREAD_REG16 568
58 #define THREAD_REG17 572
59 #define THREAD_REG18 576
60 #define THREAD_REG19 580
61 #define THREAD_REG20 584
62 #define THREAD_REG21 588
63 #define THREAD_REG22 592
64 #define THREAD_REG23 596
65 #define THREAD_REG29 600
66 #define THREAD_REG30 604
67 #define THREAD_REG31 608
68 #define THREAD_STATUS 612
69 #define THREAD_FPU 616
70 #define THREAD_BVADDR 880
71 #define THREAD_BUADDR 884
72 #define THREAD_ECODE 888
73 #define THREAD_TRAPNO 892
74 #define THREAD_PGDIR 896
75 #define THREAD_MFLAGS 900
76 #define THREAD_CURDS 904
77 #define THREAD_TRAMP 908
78 #define THREAD_OLDCTX 912
80 /* Linux mm_struct offsets. */
81 #define MM_COUNT 12
82 #define MM_PGD 8
83 #define MM_CONTEXT 32
85 /* Linux sigcontext offsets. */
86 #define SC_REGMASK 0
87 #define SC_STATUS 4
88 #define SC_PC 8
89 #define SC_REGS 16
90 #define SC_FPREGS 272
91 #define SC_OWNEDFP 528
92 #define SC_FPC_CSR 532
93 #define SC_FPC_EIR 536
94 #define SC_SSFLAGS 540
95 #define SC_MDHI 544
96 #define SC_MDLO 552
97 #define SC_CAUSE 560
98 #define SC_BADVADDR 564
99 #define SC_SIGSET 568
101 #endif /* !(_MIPS_OFFSET_H) */