elfload.c (ba9cef7b6e487a5a8969db81d09b8eec8a2b50c6) elfload.c (b16189b22244e4cc158a3425b377b219586ec8ca)
1/* This is the Linux kernel elf-loading code, ported into user space */
2#include <sys/time.h>
3#include <sys/param.h>
4
5#include <stdio.h>
6#include <sys/types.h>
7#include <fcntl.h>
8#include <errno.h>

--- 1204 unchanged lines hidden (view full) ---

1213{
1214 regs->psw.addr = infop->entry;
1215 regs->psw.mask = PSW_MASK_64 | PSW_MASK_32;
1216 regs->gprs[15] = infop->start_stack;
1217}
1218
1219#endif /* TARGET_S390X */
1220
1/* This is the Linux kernel elf-loading code, ported into user space */
2#include <sys/time.h>
3#include <sys/param.h>
4
5#include <stdio.h>
6#include <sys/types.h>
7#include <fcntl.h>
8#include <errno.h>

--- 1204 unchanged lines hidden (view full) ---

1213{
1214 regs->psw.addr = infop->entry;
1215 regs->psw.mask = PSW_MASK_64 | PSW_MASK_32;
1216 regs->gprs[15] = infop->start_stack;
1217}
1218
1219#endif /* TARGET_S390X */
1220
1221#ifdef TARGET_TILEGX
1222
1223/* 42 bits real used address, a half for user mode */
1224#define ELF_START_MMAP (0x00000020000000000ULL)
1225
1226#define elf_check_arch(x) ((x) == EM_TILEGX)
1227
1228#define ELF_CLASS ELFCLASS64
1229#define ELF_DATA ELFDATA2LSB
1230#define ELF_ARCH EM_TILEGX
1231
1232static inline void init_thread(struct target_pt_regs *regs,
1233 struct image_info *infop)
1234{
1235 regs->pc = infop->entry;
1236 regs->sp = infop->start_stack;
1237
1238}
1239
1240#define ELF_EXEC_PAGESIZE 65536 /* TILE-Gx page size is 64KB */
1241
1242#endif /* TARGET_TILEGX */
1243
1221#ifndef ELF_PLATFORM
1222#define ELF_PLATFORM (NULL)
1223#endif
1224
1225#ifndef ELF_HWCAP
1226#define ELF_HWCAP 0
1227#endif
1228

--- 1890 unchanged lines hidden ---
1244#ifndef ELF_PLATFORM
1245#define ELF_PLATFORM (NULL)
1246#endif
1247
1248#ifndef ELF_HWCAP
1249#define ELF_HWCAP 0
1250#endif
1251

--- 1890 unchanged lines hidden ---