summaryrefslogtreecommitdiff
path: root/arch/mips/kernel/asm-offsets.c
diff options
context:
space:
mode:
authorRalf Baechle <ralf@linux-mips.org>2015-07-28 20:37:43 +0200
committerRalf Baechle <ralf@linux-mips.org>2015-09-03 12:08:04 +0200
commite3b28831c18c6c95c51b6bb717fa116d2b658ba9 (patch)
tree643aec907cb2a9df80a2824719dcfc7dd5853bb8 /arch/mips/kernel/asm-offsets.c
parent8c576912e4708144cbaa28228cc910746f39bafd (diff)
MIPS: Set trap_no field in thread_struct on exception.
This reverts commit 7281cd22973008a782860e48ed8d85d00204168c and adds actual functionality to use the field.
Diffstat (limited to 'arch/mips/kernel/asm-offsets.c')
-rw-r--r--arch/mips/kernel/asm-offsets.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/arch/mips/kernel/asm-offsets.c b/arch/mips/kernel/asm-offsets.c
index 3706091b6351..154e2039ea5e 100644
--- a/arch/mips/kernel/asm-offsets.c
+++ b/arch/mips/kernel/asm-offsets.c
@@ -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();
}