diff options
author | Ralf Baechle <ralf@linux-mips.org> | 1997-06-01 03:16:17 +0000 |
---|---|---|
committer | Ralf Baechle <ralf@linux-mips.org> | 1997-06-01 03:16:17 +0000 |
commit | d8d9b8f76f22b7a16a83e261e64f89ee611f49df (patch) | |
tree | 3067bc130b80d52808e6390c9fc7fc087ec1e33c /arch/mips/tools | |
parent | 19c9bba94152148523ba0f7ef7cffe3d45656b11 (diff) |
Initial revision
Diffstat (limited to 'arch/mips/tools')
-rw-r--r-- | arch/mips/tools/.cvsignore | 1 | ||||
-rw-r--r-- | arch/mips/tools/offset.c | 3 | ||||
-rw-r--r-- | arch/mips/tools/offset.h | 89 |
3 files changed, 2 insertions, 91 deletions
diff --git a/arch/mips/tools/.cvsignore b/arch/mips/tools/.cvsignore new file mode 100644 index 000000000..2a1642034 --- /dev/null +++ b/arch/mips/tools/.cvsignore @@ -0,0 +1 @@ +.depend offset.s offset.h diff --git a/arch/mips/tools/offset.c b/arch/mips/tools/offset.c index 3bb46de6e..a8660dcf6 100644 --- a/arch/mips/tools/offset.c +++ b/arch/mips/tools/offset.c @@ -77,12 +77,11 @@ void output_task_defines(void) { text("/* MIPS task_struct offsets. */"); offset("#define TASK_STATE ", struct task_struct, state); + offset("#define TASK_COUNTER ", struct task_struct, counter); offset("#define TASK_PRIORITY ", struct task_struct, priority); offset("#define TASK_SIGNAL ", struct task_struct, signal); offset("#define TASK_BLOCKED ", struct task_struct, blocked); offset("#define TASK_FLAGS ", struct task_struct, flags); - offset("#define TASK_SAVED_KSTACK ", struct task_struct, saved_kernel_stack); - offset("#define TASK_KSTACK_PG ", struct task_struct, kernel_stack_page); offset("#define TASK_MM ", struct task_struct, mm); linefeed; } diff --git a/arch/mips/tools/offset.h b/arch/mips/tools/offset.h deleted file mode 100644 index c5e6f37fa..000000000 --- a/arch/mips/tools/offset.h +++ /dev/null @@ -1,89 +0,0 @@ -/* DO NOT TOUCH, AUTOGENERATED BY OFFSET.C */ - -#ifndef _MIPS_OFFSET_H -#define _MIPS_OFFSET_H - -/* MIPS pt_regs offsets. */ -#define PT_R0 24 -#define PT_R1 28 -#define PT_R2 32 -#define PT_R3 36 -#define PT_R4 40 -#define PT_R5 44 -#define PT_R6 48 -#define PT_R7 52 -#define PT_R8 56 -#define PT_R9 60 -#define PT_R10 64 -#define PT_R11 68 -#define PT_R12 72 -#define PT_R13 76 -#define PT_R14 80 -#define PT_R15 84 -#define PT_R16 88 -#define PT_R17 92 -#define PT_R18 96 -#define PT_R19 100 -#define PT_R20 104 -#define PT_R21 108 -#define PT_R22 112 -#define PT_R23 116 -#define PT_R24 120 -#define PT_R25 124 -#define PT_R26 128 -#define PT_R27 132 -#define PT_R28 136 -#define PT_R29 140 -#define PT_R30 144 -#define PT_R31 148 -#define PT_LO 152 -#define PT_HI 156 -#define PT_OR2 160 -#define PT_OR7 164 -#define PT_EPC 168 -#define PT_BVADDR 172 -#define PT_STATUS 176 -#define PT_CAUSE 180 -#define PT_SIZE 184 - -/* MIPS task_struct offsets. */ -#define TASK_STATE 0 -#define TASK_PRIORITY 8 -#define TASK_SIGNAL 12 -#define TASK_BLOCKED 16 -#define TASK_FLAGS 20 -#define TASK_SAVED_KSTACK 84 -#define TASK_KSTACK_PG 88 -#define TASK_MM 912 - -/* MIPS specific thread_struct offsets. */ -#define THREAD_REG16 544 -#define THREAD_REG17 548 -#define THREAD_REG18 552 -#define THREAD_REG19 556 -#define THREAD_REG20 560 -#define THREAD_REG21 564 -#define THREAD_REG22 568 -#define THREAD_REG23 572 -#define THREAD_REG28 576 -#define THREAD_REG29 580 -#define THREAD_REG30 584 -#define THREAD_REG31 588 -#define THREAD_STATUS 592 -#define THREAD_FPU 600 -#define THREAD_BVADDR 864 -#define THREAD_ECODE 868 -#define THREAD_TRAPNO 872 -#define THREAD_KSP 876 -#define THREAD_PGDIR 880 -#define THREAD_MFLAGS 884 -#define THREAD_CURDS 888 -#define THREAD_TRAMP 892 -#define THREAD_OLDCTX 896 - -/* Linux mm_struct offsets. */ -#define MM_COUNT 0 -#define MM_PGD 4 -#define MM_CONTEXT 8 - -#endif /* !(_MIPS_OFFSET_H) */ |