MIPS: Set trap_no field in thread_struct on exception.
[linux-drm-fsl-dcu.git] / arch / mips / kernel / asm-offsets.c
index 072fab13645d503a3b71381fec8c5976f570a905..154e2039ea5ef13fe9ba8935eb01475031283913 100644 (file)
@@ -128,6 +128,7 @@ void output_thread_defines(void)
               thread.cp0_baduaddr);
        OFFSET(THREAD_ECODE, task_struct, \
               thread.error_code);
+       OFFSET(THREAD_TRAPNO, task_struct, thread.trap_nr);
        BLANK();
 }
 
@@ -245,17 +246,6 @@ void output_sc_defines(void)
 }
 #endif
 
-#ifdef CONFIG_MIPS32_COMPAT
-void output_sc32_defines(void)
-{
-       COMMENT("Linux 32-bit sigcontext offsets.");
-       OFFSET(SC32_FPREGS, sigcontext32, sc_fpregs);
-       OFFSET(SC32_FPC_CSR, sigcontext32, sc_fpc_csr);
-       OFFSET(SC32_FPC_EIR, sigcontext32, sc_fpc_eir);
-       BLANK();
-}
-#endif
-
 void output_signal_defined(void)
 {
        COMMENT("Linux signal numbers.");