summaryrefslogtreecommitdiffstats
path: root/arch/mips/tools
diff options
context:
space:
mode:
authorRalf Baechle <ralf@linux-mips.org>1997-06-25 19:58:12 +0000
committerRalf Baechle <ralf@linux-mips.org>1997-06-25 19:58:12 +0000
commit0a396a0db4a252bc50e0b6e5a89578e9c53b35eb (patch)
treea7f86df7b463b0bdc6da53ad4d771cba3651d866 /arch/mips/tools
parenta038605c5838f817472771c66c8c97453a73ee3b (diff)
Generate the struct sigcontext offsets autmatically.
Diffstat (limited to 'arch/mips/tools')
-rw-r--r--arch/mips/tools/offset.c20
1 files changed, 20 insertions, 0 deletions
diff --git a/arch/mips/tools/offset.c b/arch/mips/tools/offset.c
index a8660dcf6..3ea39e133 100644
--- a/arch/mips/tools/offset.c
+++ b/arch/mips/tools/offset.c
@@ -124,4 +124,24 @@ void output_mm_defines(void)
linefeed;
}
+void output_sc_defines(void)
+{
+ text("/* Linux sigcontext offsets. */");
+ offset("#define SC_REGMASK ", struct sigcontext, sc_regmask);
+ offset("#define SC_STATUS ", struct sigcontext, sc_status);
+ offset("#define SC_PC ", struct sigcontext, sc_pc);
+ offset("#define SC_REGS ", struct sigcontext, sc_regs);
+ offset("#define SC_FPREGS ", struct sigcontext, sc_fpregs);
+ offset("#define SC_OWNEDFP ", struct sigcontext, sc_ownedfp);
+ offset("#define SC_FPC_CSR ", struct sigcontext, sc_fpc_csr);
+ offset("#define SC_FPC_EIR ", struct sigcontext, sc_fpc_eir);
+ offset("#define SC_SSFLAGS ", struct sigcontext, sc_ssflags);
+ offset("#define SC_MDHI ", struct sigcontext, sc_mdhi);
+ offset("#define SC_MDLO ", struct sigcontext, sc_mdlo);
+ offset("#define SC_CAUSE ", struct sigcontext, sc_cause);
+ offset("#define SC_BADVADDR ", struct sigcontext, sc_badvaddr);
+ offset("#define SC_SIGSET ", struct sigcontext, sc_sigset);
+ linefeed;
+}
+
text("#endif /* !(_MIPS_OFFSET_H) */");