Go to the documentation of this file.
15 #include <linux/utsname.h>
16 #include <asm/ptrace.h>
22 #define R_MN10300_NONE 0
23 #define R_MN10300_32 1
24 #define R_MN10300_16 2
26 #define R_MN10300_PCREL32 4
27 #define R_MN10300_PCREL16 5
28 #define R_MN10300_PCREL8 6
29 #define R_MN10300_24 9
30 #define R_MN10300_RELATIVE 23
31 #define R_MN10300_SYM_DIFF 33
32 #define R_MN10300_ALIGN 34
37 #define HWCAP_MN10300_ATOMIC_OP_UNIT 1
45 #define ELF_NGREG ((sizeof(struct pt_regs) / sizeof(elf_greg_t)) - 1)
59 #define elf_check_arch(x) \
60 (((x)->e_machine == EM_CYGNUS_MN10300) || \
61 ((x)->e_machine == EM_MN10300))
66 #define ELF_CLASS ELFCLASS32
67 #define ELF_DATA ELFDATA2LSB
68 #define ELF_ARCH EM_MN10300
73 #define ELF_PLAT_INIT(_r, load_addr) \
75 struct pt_regs *_ur = current->thread.uregs; \
76 _ur->a3 = 0; _ur->a2 = 0; _ur->d3 = 0; _ur->d2 = 0; \
77 _ur->mcvf = 0; _ur->mcrl = 0; _ur->mcrh = 0; _ur->mdrq = 0; \
78 _ur->e1 = 0; _ur->e0 = 0; _ur->e7 = 0; _ur->e6 = 0; \
79 _ur->e5 = 0; _ur->e4 = 0; _ur->e3 = 0; _ur->e2 = 0; \
80 _ur->lar = 0; _ur->lir = 0; _ur->mdr = 0; \
81 _ur->a1 = 0; _ur->a0 = 0; _ur->d1 = 0; _ur->d0 = 0; \
84 #define CORE_DUMP_USE_REGSET
85 #define ELF_EXEC_PAGESIZE 4096
94 #define ELF_ET_DYN_BASE 0x04000000
101 #define ELF_CORE_COPY_REGS(pr_reg, regs) \
103 pr_reg[0] = regs->a3; \
104 pr_reg[1] = regs->a2; \
105 pr_reg[2] = regs->d3; \
106 pr_reg[3] = regs->d2; \
107 pr_reg[4] = regs->mcvf; \
108 pr_reg[5] = regs->mcrl; \
109 pr_reg[6] = regs->mcrh; \
110 pr_reg[7] = regs->mdrq; \
111 pr_reg[8] = regs->e1; \
112 pr_reg[9] = regs->e0; \
113 pr_reg[10] = regs->e7; \
114 pr_reg[11] = regs->e6; \
115 pr_reg[12] = regs->e5; \
116 pr_reg[13] = regs->e4; \
117 pr_reg[14] = regs->e3; \
118 pr_reg[15] = regs->e2; \
119 pr_reg[16] = regs->sp; \
120 pr_reg[17] = regs->lar; \
121 pr_reg[18] = regs->lir; \
122 pr_reg[19] = regs->mdr; \
123 pr_reg[20] = regs->a1; \
124 pr_reg[21] = regs->a0; \
125 pr_reg[22] = regs->d1; \
126 pr_reg[23] = regs->d0; \
127 pr_reg[24] = regs->orig_d0; \
128 pr_reg[25] = regs->epsw; \
129 pr_reg[26] = regs->pc; \
137 #ifdef CONFIG_MN10300_HAS_ATOMIC_OPS_UNIT
138 #define ELF_HWCAP (HWCAP_MN10300_ATOMIC_OP_UNIT)
140 #define ELF_HWCAP (0)
151 #define ELF_PLATFORM (NULL)
154 #define SET_PERSONALITY(ex) \
155 set_personality(PER_LINUX | (current->personality & (~PER_MASK)))