1 /* Linux-specific definitions: */ 2 3 /* Define various structure offsets to simplify cross-compilation. */ 4 5 /* Offsets for ARM Linux "ucontext_t": */ 6 7 #define LINUX_UC_FLAGS_OFF 0x00 8 #define LINUX_UC_LINK_OFF 0x04 9 #define LINUX_UC_STACK_OFF 0x08 10 #define LINUX_UC_MCONTEXT_OFF 0x14 11 #define LINUX_UC_SIGMASK_OFF 0x68 12 #define LINUX_UC_REGSPACE_OFF 0xE8 13 14 /* Offsets for ARM Linux "struct sigcontext": */ 15 16 #define LINUX_SC_TRAPNO_OFF 0x00 17 #define LINUX_SC_ERRORCODE_OFF 0x04 18 #define LINUX_SC_OLDMASK_OFF 0x08 19 #define LINUX_SC_R0_OFF 0x0C 20 #define LINUX_SC_R1_OFF 0x10 21 #define LINUX_SC_R2_OFF 0x14 22 #define LINUX_SC_R3_OFF 0x18 23 #define LINUX_SC_R4_OFF 0x1C 24 #define LINUX_SC_R5_OFF 0x20 25 #define LINUX_SC_R6_OFF 0x24 26 #define LINUX_SC_R7_OFF 0x28 27 #define LINUX_SC_R8_OFF 0x2C 28 #define LINUX_SC_R9_OFF 0x30 29 #define LINUX_SC_R10_OFF 0x34 30 #define LINUX_SC_FP_OFF 0x38 31 #define LINUX_SC_IP_OFF 0x3C 32 #define LINUX_SC_SP_OFF 0x40 33 #define LINUX_SC_LR_OFF 0x44 34 #define LINUX_SC_PC_OFF 0x48 35 #define LINUX_SC_CPSR_OFF 0x4C 36 #define LINUX_SC_FAULTADDR_OFF 0x50 37