Go to the documentation of this file.
15 #include <asm/ptrace.h>
23 #define EF_FRV_GPR_MASK 0x00000003
24 #define EF_FRV_GPR32 0x00000001
25 #define EF_FRV_GPR64 0x00000002
26 #define EF_FRV_FPR_MASK 0x0000000c
27 #define EF_FRV_FPR32 0x00000004
28 #define EF_FRV_FPR64 0x00000008
29 #define EF_FRV_FPR_NONE 0x0000000C
30 #define EF_FRV_DWORD_MASK 0x00000030
31 #define EF_FRV_DWORD_YES 0x00000010
32 #define EF_FRV_DWORD_NO 0x00000020
33 #define EF_FRV_DOUBLE 0x00000040
34 #define EF_FRV_MEDIA 0x00000080
35 #define EF_FRV_PIC 0x00000100
36 #define EF_FRV_NON_PIC_RELOCS 0x00000200
37 #define EF_FRV_MULADD 0x00000400
38 #define EF_FRV_BIGPIC 0x00000800
39 #define EF_FRV_LIBPIC 0x00001000
40 #define EF_FRV_G0 0x00002000
41 #define EF_FRV_NOPACK 0x00004000
42 #define EF_FRV_FDPIC 0x00008000
43 #define EF_FRV_CPU_MASK 0xff000000
44 #define EF_FRV_CPU_GENERIC 0x00000000
45 #define EF_FRV_CPU_FR500 0x01000000
46 #define EF_FRV_CPU_FR300 0x02000000
47 #define EF_FRV_CPU_SIMPLE 0x03000000
48 #define EF_FRV_CPU_TOMCAT 0x04000000
49 #define EF_FRV_CPU_FR400 0x05000000
50 #define EF_FRV_CPU_FR550 0x06000000
51 #define EF_FRV_CPU_FR405 0x07000000
52 #define EF_FRV_CPU_FR450 0x08000000
64 #define ELF_NGREG (sizeof(struct pt_regs) / sizeof(elf_greg_t))
74 #define elf_check_fdpic(x) ((x)->e_flags & EF_FRV_FDPIC && !((x)->e_flags & EF_FRV_NON_PIC_RELOCS))
75 #define elf_check_const_displacement(x) ((x)->e_flags & EF_FRV_PIC)
80 #define ELF_CLASS ELFCLASS32
81 #define ELF_DATA ELFDATA2MSB
82 #define ELF_ARCH EM_FRV
84 #define ELF_PLAT_INIT(_r) \
86 __kernel_frame0_ptr->gr16 = 0; \
87 __kernel_frame0_ptr->gr17 = 0; \
88 __kernel_frame0_ptr->gr18 = 0; \
89 __kernel_frame0_ptr->gr19 = 0; \
90 __kernel_frame0_ptr->gr20 = 0; \
91 __kernel_frame0_ptr->gr21 = 0; \
92 __kernel_frame0_ptr->gr22 = 0; \
93 __kernel_frame0_ptr->gr23 = 0; \
94 __kernel_frame0_ptr->gr24 = 0; \
95 __kernel_frame0_ptr->gr25 = 0; \
96 __kernel_frame0_ptr->gr26 = 0; \
97 __kernel_frame0_ptr->gr27 = 0; \
98 __kernel_frame0_ptr->gr29 = 0; \
101 #define ELF_FDPIC_PLAT_INIT(_regs, _exec_map_addr, _interp_map_addr, _dynamic_addr) \
103 __kernel_frame0_ptr->gr16 = _exec_map_addr; \
104 __kernel_frame0_ptr->gr17 = _interp_map_addr; \
105 __kernel_frame0_ptr->gr18 = _dynamic_addr; \
106 __kernel_frame0_ptr->gr19 = 0; \
107 __kernel_frame0_ptr->gr20 = 0; \
108 __kernel_frame0_ptr->gr21 = 0; \
109 __kernel_frame0_ptr->gr22 = 0; \
110 __kernel_frame0_ptr->gr23 = 0; \
111 __kernel_frame0_ptr->gr24 = 0; \
112 __kernel_frame0_ptr->gr25 = 0; \
113 __kernel_frame0_ptr->gr26 = 0; \
114 __kernel_frame0_ptr->gr27 = 0; \
115 __kernel_frame0_ptr->gr29 = 0; \
118 #define CORE_DUMP_USE_REGSET
119 #define ELF_FDPIC_CORE_EFLAGS EF_FRV_FDPIC
120 #define ELF_EXEC_PAGESIZE 16384
127 #define ELF_ET_DYN_BASE 0x08000000UL
132 #define ELF_HWCAP (0)
138 #define ELF_PLATFORM (NULL)
140 #define SET_PERSONALITY(ex) \
141 set_personality(PER_LINUX | (current->personality & (~PER_MASK)))