Go to the documentation of this file.
11 #ifndef _ASM_MICROBLAZE_ELF_H
12 #define _ASM_MICROBLAZE_ELF_H
19 #define EM_MICROBLAZE 189
20 #define EM_MICROBLAZE_OLD 0xbaab
21 #define ELF_ARCH EM_MICROBLAZE
26 #define elf_check_arch(x) ((x)->e_machine == EM_MICROBLAZE \
27 || (x)->e_machine == EM_MICROBLAZE_OLD)
32 #define ELF_CLASS ELFCLASS32
40 #include <asm/ptrace.h>
41 #include <asm/byteorder.h>
49 #define ELF_NGREG (sizeof(struct pt_regs) / sizeof(elf_greg_t))
57 #ifndef ELF_FPREGSET_T
58 #define ELF_FPREGSET_T
74 #define ELF_ET_DYN_BASE (0x08000000)
76 #ifdef __MICROBLAZEEL__
77 #define ELF_DATA ELFDATA2LSB
79 #define ELF_DATA ELFDATA2MSB
82 #define ELF_EXEC_PAGESIZE PAGE_SIZE
85 #define ELF_CORE_COPY_REGS(_dest, _regs) \
86 memcpy((char *) &_dest, (char *) _regs, \
87 sizeof(struct pt_regs));
102 #define ELF_PLATFORM (NULL)
105 #define ELF_PLAT_INIT(_r, _f) \
107 _r->r1 = _r->r1 = _r->r2 = _r->r3 = \
108 _r->r4 = _r->r5 = _r->r6 = _r->r7 = \
109 _r->r8 = _r->r9 = _r->r10 = _r->r11 = \
110 _r->r12 = _r->r13 = _r->r14 = _r->r15 = \
111 _r->r16 = _r->r17 = _r->r18 = _r->r19 = \
112 _r->r20 = _r->r21 = _r->r22 = _r->r23 = \
113 _r->r24 = _r->r25 = _r->r26 = _r->r27 = \
114 _r->r28 = _r->r29 = _r->r30 = _r->r31 = \
119 #define SET_PERSONALITY(ex) \
120 set_personality(PER_LINUX_32BIT | (current->personality & (~PER_MASK)))