Skip to content

Instantly share code, notes, and snippets.

@jpf91
Created May 2, 2013 14:51
Show Gist options
  • Save jpf91/5502741 to your computer and use it in GitHub Desktop.
Save jpf91/5502741 to your computer and use it in GitHub Desktop.
else version(ARM)
{
enum
{
R0 = 0,
R1 = 1,
R2 = 2,
R3 = 3,
R4 = 4,
R5 = 5,
R6 = 6,
R7 = 7,
R8 = 8,
R9 = 9,
R10 = 10,
R11 = 11,
R12 = 12,
R13 = 13,
R14 = 14,
R15 = 15
}
struct sigcontext
{
c_ulong trap_no;
c_ulong error_code;
c_ulong oldmask;
c_ulong arm_r0;
c_ulong arm_r1;
c_ulong arm_r2;
c_ulong arm_r3;
c_ulong arm_r4;
c_ulong arm_r5;
c_ulong arm_r6;
c_ulong arm_r7;
c_ulong arm_r8;
c_ulong arm_r9;
c_ulong arm_r10;
c_ulong arm_fp;
c_ulong arm_ip;
c_ulong arm_sp;
c_ulong arm_lr;
c_ulong arm_pc;
c_ulong arm_cpsr;
c_ulong fault_address;
}
//alias elf_fpregset_t fpregset_t;
alias sigcontext mcontext_t;
struct ucontext_t
{
c_ulong uc_flags;
ucontext_t* uc_link;
stack_t uc_stack;
mcontext_t uc_mcontext;
sigset_t uc_sigmask;
c_ulong[128] uc_regspace;// __attribute__((__aligned__(8)));
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment