Go to the documentation of this file. 1 #ifndef __ASMCRIS_ARCH_ELF_H
2 #define __ASMCRIS_ARCH_ELF_H
4 #include <arch/system.h>
6 #define ELF_MACH EF_CRIS_VARIANT_ANY_V0_V10
11 #define elf_check_arch(x) \
12 ((x)->e_machine == EM_CRIS \
13 && ((((x)->e_flags & EF_CRIS_VARIANT_MASK) == EF_CRIS_VARIANT_ANY_V0_V10 \
14 || (((x)->e_flags & EF_CRIS_VARIANT_MASK) == EF_CRIS_VARIANT_COMMON_V10_V32))))
20 #include <asm/ptrace.h>
32 #define ELF_PLAT_INIT(_r, load_addr) do { \
33 (_r)->r13 = 0; (_r)->r12 = 0; (_r)->r11 = 0; (_r)->r10 = 0; \
34 (_r)->r9 = 0; (_r)->r8 = 0; (_r)->r7 = 0; (_r)->r6 = 0; \
35 (_r)->r5 = 0; (_r)->r4 = 0; (_r)->r3 = 0; (_r)->r2 = 0; \
36 (_r)->r1 = 0; (_r)->r0 = 0; (_r)->mof = 0; (_r)->srp = 0; \
45 #define ELF_CORE_COPY_REGS(pr_reg, regs) \
46 pr_reg[0] = regs->r0; \
47 pr_reg[1] = regs->r1; \
48 pr_reg[2] = regs->r2; \
49 pr_reg[3] = regs->r3; \
50 pr_reg[4] = regs->r4; \
51 pr_reg[5] = regs->r5; \
52 pr_reg[6] = regs->r6; \
53 pr_reg[7] = regs->r7; \
54 pr_reg[8] = regs->r8; \
55 pr_reg[9] = regs->r9; \
56 pr_reg[10] = regs->r10; \
57 pr_reg[11] = regs->r11; \
58 pr_reg[12] = regs->r12; \
59 pr_reg[13] = regs->r13; \
60 pr_reg[14] = rdusp(); \
61 pr_reg[15] = regs->irp; \
63 pr_reg[17] = rdvr(); \
67 pr_reg[21] = (regs->dccr & 0xffff); \
69 pr_reg[23] = regs->mof; \
73 pr_reg[27] = regs->srp; \
75 pr_reg[29] = regs->dccr; \
77 pr_reg[31] = rdusp(); \