MIPS: Set trap_no field in thread_struct on exception.
[linux-drm-fsl-dcu.git] / arch / mips / kernel / asm-offsets.c
index beabe19ff8e5c963af0cf38147a3f4b7af64efca..154e2039ea5ef13fe9ba8935eb01475031283913 100644 (file)
@@ -1,5 +1,5 @@
 /*
- * offset.c: Calculate pt_regs and task_struct offsets.
+ * asm-offsets.c: Calculate pt_regs and task_struct offsets.
  *
  * Copyright (C) 1996 David S. Miller
  * Copyright (C) 1997, 1998, 1999, 2000, 2001, 2002, 2003 Ralf Baechle
@@ -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.");