diff options
Diffstat (limited to 'arch/mips/kernel/asm-offsets.c')
-rw-r--r-- | arch/mips/kernel/asm-offsets.c | 25 |
1 files changed, 23 insertions, 2 deletions
diff --git a/arch/mips/kernel/asm-offsets.c b/arch/mips/kernel/asm-offsets.c index 2c11abb5a406..ca6b03c773be 100644 --- a/arch/mips/kernel/asm-offsets.c +++ b/arch/mips/kernel/asm-offsets.c | |||
@@ -95,6 +95,7 @@ void output_thread_info_defines(void) | |||
95 | offset("#define TI_PRE_COUNT ", struct thread_info, preempt_count); | 95 | offset("#define TI_PRE_COUNT ", struct thread_info, preempt_count); |
96 | offset("#define TI_ADDR_LIMIT ", struct thread_info, addr_limit); | 96 | offset("#define TI_ADDR_LIMIT ", struct thread_info, addr_limit); |
97 | offset("#define TI_RESTART_BLOCK ", struct thread_info, restart_block); | 97 | offset("#define TI_RESTART_BLOCK ", struct thread_info, restart_block); |
98 | offset("#define TI_TP_VALUE ", struct thread_info, tp_value); | ||
98 | constant("#define _THREAD_SIZE_ORDER ", THREAD_SIZE_ORDER); | 99 | constant("#define _THREAD_SIZE_ORDER ", THREAD_SIZE_ORDER); |
99 | constant("#define _THREAD_SIZE ", THREAD_SIZE); | 100 | constant("#define _THREAD_SIZE ", THREAD_SIZE); |
100 | constant("#define _THREAD_MASK ", THREAD_MASK); | 101 | constant("#define _THREAD_MASK ", THREAD_MASK); |
@@ -240,6 +241,7 @@ void output_mm_defines(void) | |||
240 | linefeed; | 241 | linefeed; |
241 | } | 242 | } |
242 | 243 | ||
244 | #ifdef CONFIG_32BIT | ||
243 | void output_sc_defines(void) | 245 | void output_sc_defines(void) |
244 | { | 246 | { |
245 | text("/* Linux sigcontext offsets. */"); | 247 | text("/* Linux sigcontext offsets. */"); |
@@ -251,10 +253,29 @@ void output_sc_defines(void) | |||
251 | offset("#define SC_STATUS ", struct sigcontext, sc_status); | 253 | offset("#define SC_STATUS ", struct sigcontext, sc_status); |
252 | offset("#define SC_FPC_CSR ", struct sigcontext, sc_fpc_csr); | 254 | offset("#define SC_FPC_CSR ", struct sigcontext, sc_fpc_csr); |
253 | offset("#define SC_FPC_EIR ", struct sigcontext, sc_fpc_eir); | 255 | offset("#define SC_FPC_EIR ", struct sigcontext, sc_fpc_eir); |
254 | offset("#define SC_CAUSE ", struct sigcontext, sc_cause); | 256 | offset("#define SC_HI1 ", struct sigcontext, sc_hi1); |
255 | offset("#define SC_BADVADDR ", struct sigcontext, sc_badvaddr); | 257 | offset("#define SC_LO1 ", struct sigcontext, sc_lo1); |
258 | offset("#define SC_HI2 ", struct sigcontext, sc_hi2); | ||
259 | offset("#define SC_LO2 ", struct sigcontext, sc_lo2); | ||
260 | offset("#define SC_HI3 ", struct sigcontext, sc_hi3); | ||
261 | offset("#define SC_LO3 ", struct sigcontext, sc_lo3); | ||
256 | linefeed; | 262 | linefeed; |
257 | } | 263 | } |
264 | #endif | ||
265 | |||
266 | #ifdef CONFIG_64BIT | ||
267 | void output_sc_defines(void) | ||
268 | { | ||
269 | text("/* Linux sigcontext offsets. */"); | ||
270 | offset("#define SC_REGS ", struct sigcontext, sc_regs); | ||
271 | offset("#define SC_FPREGS ", struct sigcontext, sc_fpregs); | ||
272 | offset("#define SC_MDHI ", struct sigcontext, sc_hi); | ||
273 | offset("#define SC_MDLO ", struct sigcontext, sc_lo); | ||
274 | offset("#define SC_PC ", struct sigcontext, sc_pc); | ||
275 | offset("#define SC_FPC_CSR ", struct sigcontext, sc_fpc_csr); | ||
276 | linefeed; | ||
277 | } | ||
278 | #endif | ||
258 | 279 | ||
259 | #ifdef CONFIG_MIPS32_COMPAT | 280 | #ifdef CONFIG_MIPS32_COMPAT |
260 | void output_sc32_defines(void) | 281 | void output_sc32_defines(void) |