4 #include <asm/sigcontext.h>
7 printf ("#define LINUX_UC_" N "_OFF\t0x%X\n", offsetof (ucontext_t, X))
10 printf ("#define LINUX_SC_" N "_OFF\t0x%X\n", offsetof (struct sigcontext, X))
16 "/* Linux-specific definitions: */\n\n"
18 "/* Define various structure offsets to simplify cross-compilation. */\n\n"
20 "/* Offsets for ARM Linux \"ucontext_t\": */\n\n");
22 UC ("FLAGS", uc_flags);
24 UC ("STACK", uc_stack);
25 UC ("MCONTEXT", uc_mcontext);
26 UC ("SIGMASK", uc_sigmask);
27 UC ("REGSPACE", uc_regspace);
29 printf ("\n/* Offsets for ARM Linux \"struct sigcontext\": */\n\n");
31 SC ("TRAPNO", trap_no);
32 SC ("ERRORCODE", error_code);
33 SC ("OLDMASK", oldmask);
50 SC ("CPSR", arm_cpsr);
51 SC ("FAULTADDR", fault_address);