| 247 |
|
|
| 248 |
#endif |
#endif |
| 249 |
|
|
| 250 |
|
#ifdef TARGET_MIPS |
| 251 |
|
|
| 252 |
|
#define ELF_START_MMAP 0x80000000 |
| 253 |
|
|
| 254 |
|
#define elf_check_arch(x) ( (x) == EM_MIPS ) |
| 255 |
|
|
| 256 |
|
#define ELF_CLASS ELFCLASS32 |
| 257 |
|
#ifdef TARGET_WORDS_BIGENDIAN |
| 258 |
|
#define ELF_DATA ELFDATA2MSB |
| 259 |
|
#else |
| 260 |
|
#define ELF_DATA ELFDATA2LSB |
| 261 |
|
#endif |
| 262 |
|
#define ELF_ARCH EM_MIPS |
| 263 |
|
|
| 264 |
|
#define ELF_PLAT_INIT(_r) |
| 265 |
|
|
| 266 |
|
static inline void init_thread(struct target_pt_regs *regs, struct image_info *infop) |
| 267 |
|
{ |
| 268 |
|
regs->cp0_status = CP0St_UM; |
| 269 |
|
regs->cp0_epc = infop->entry; |
| 270 |
|
regs->regs[29] = infop->start_stack; |
| 271 |
|
} |
| 272 |
|
|
| 273 |
|
#endif /* TARGET_MIPS */ |
| 274 |
|
|
| 275 |
#ifndef ELF_PLATFORM |
#ifndef ELF_PLATFORM |
| 276 |
#define ELF_PLATFORM (NULL) |
#define ELF_PLATFORM (NULL) |
| 277 |
#endif |
#endif |