12 #include <linux/types.h>
13 #include <linux/sched.h>
17 #include <asm/ptrace.h>
18 #include <asm/processor.h>
22 COMMENT(
"MIPS pt_regs offsets.");
57 #ifdef CONFIG_CPU_HAS_SMARTMIPS
64 #ifdef CONFIG_MIPS_MT_SMTC
67 #ifdef CONFIG_CPU_CAVIUM_OCTEON
77 COMMENT(
"MIPS task_struct offsets.");
89 COMMENT(
"MIPS thread_info offsets.");
100 DEFINE(_THREAD_MASK, THREAD_MASK);
106 COMMENT(
"MIPS specific thread_struct offsets.");
176 COMMENT(
"Size of struct page");
177 DEFINE(STRUCT_PAGE_SIZE,
sizeof(
struct page));
179 COMMENT(
"Linux mm_struct offsets.");
189 #ifndef __PAGETABLE_PMD_FOLDED
195 #ifndef __PAGETABLE_PMD_FOLDED
212 COMMENT(
"Linux sigcontext offsets.");
234 COMMENT(
"Linux sigcontext offsets.");
245 #ifdef CONFIG_MIPS32_COMPAT
246 void output_sc32_defines(
void)
248 COMMENT(
"Linux 32-bit sigcontext offsets.");
258 COMMENT(
"Linux signal numbers.");
294 #ifdef CONFIG_CPU_CAVIUM_OCTEON
295 void output_octeon_cop2_state_defines(
void)
297 COMMENT(
"Octeon specific octeon_cop2_state offsets.");
298 OFFSET(OCTEON_CP2_CRC_IV, octeon_cop2_state, cop2_crc_iv);
299 OFFSET(OCTEON_CP2_CRC_LENGTH, octeon_cop2_state, cop2_crc_length);
300 OFFSET(OCTEON_CP2_CRC_POLY, octeon_cop2_state, cop2_crc_poly);
301 OFFSET(OCTEON_CP2_LLM_DAT, octeon_cop2_state, cop2_llm_dat);
302 OFFSET(OCTEON_CP2_3DES_IV, octeon_cop2_state, cop2_3des_iv);
303 OFFSET(OCTEON_CP2_3DES_KEY, octeon_cop2_state, cop2_3des_key);
304 OFFSET(OCTEON_CP2_3DES_RESULT, octeon_cop2_state, cop2_3des_result);
305 OFFSET(OCTEON_CP2_AES_INP0, octeon_cop2_state, cop2_aes_inp0);
306 OFFSET(OCTEON_CP2_AES_IV, octeon_cop2_state, cop2_aes_iv);
307 OFFSET(OCTEON_CP2_AES_KEY, octeon_cop2_state, cop2_aes_key);
308 OFFSET(OCTEON_CP2_AES_KEYLEN, octeon_cop2_state, cop2_aes_keylen);
309 OFFSET(OCTEON_CP2_AES_RESULT, octeon_cop2_state, cop2_aes_result);
310 OFFSET(OCTEON_CP2_GFM_MULT, octeon_cop2_state, cop2_gfm_mult);
311 OFFSET(OCTEON_CP2_GFM_POLY, octeon_cop2_state, cop2_gfm_poly);
312 OFFSET(OCTEON_CP2_GFM_RESULT, octeon_cop2_state, cop2_gfm_result);
313 OFFSET(OCTEON_CP2_HSH_DATW, octeon_cop2_state, cop2_hsh_datw);
314 OFFSET(OCTEON_CP2_HSH_IVW, octeon_cop2_state, cop2_hsh_ivw);
321 #ifdef CONFIG_HIBERNATION
322 void output_pbe_defines(
void)
324 COMMENT(
" Linux struct pbe offsets. ");
326 OFFSET(PBE_ORIG_ADDRESS,
pbe, orig_address);