~ [ source navigation ] ~ [ diff markup ] ~ [ identifier search ] ~ [ freetext search ] ~ [ file search ] ~

Linux Cross Reference
Linux/include/asm-s390/elf.h

Version: ~ [ 2.4.0 ] ~
Architecture: ~ [ i386 ] ~ [ alpha ] ~ [ m68k ] ~ [ mips ] ~ [ ppc ] ~ [ sparc ] ~ [ sparc64 ] ~

  1 /*
  2  *  include/asm-s390/elf.h
  3  *
  4  *  S390 version
  5  *
  6  *  Derived from "include/asm-i386/elf.h"
  7  */
  8 
  9 #ifndef __ASMS390_ELF_H
 10 #define __ASMS390_ELF_H
 11 
 12 /*
 13  * ELF register definitions..
 14  */
 15 
 16 #include <asm/ptrace.h>
 17 #include <asm/user.h>
 18 
 19 
 20 typedef s390_fp_regs elf_fpregset_t;
 21 typedef s390_regs elf_gregset_t;
 22 /*
 23  * This is used to ensure we don't load something for the wrong architecture.
 24  */
 25 #define elf_check_arch(x) ((x)->e_machine == EM_S390) 
 26 
 27 /*
 28  * These are used to set parameters in the core dumps.
 29  */
 30 #define ELF_CLASS       ELFCLASS32
 31 #define ELF_DATA        ELFDATA2MSB
 32 #define ELF_ARCH        EM_S390
 33 
 34 /* For SVR4/S390 the function pointer to be registered with `atexit` is
 35    passed in R14. */
 36 #define ELF_PLAT_INIT(_r) \
 37         _r->gprs[14] = 0
 38 
 39 #define USE_ELF_CORE_DUMP
 40 #define ELF_EXEC_PAGESIZE       4096
 41 
 42 /* This is the location that an ET_DYN program is loaded if exec'ed.  Typical
 43    use of this is to invoke "./ld.so someprog" to test out a new version of
 44    the loader.  We need to make sure that it is out of the way of the program
 45    that it will "exec", and that there is sufficient room for the brk.  */
 46 
 47 #define ELF_ET_DYN_BASE         ((TASK_SIZE & 0x80000000) \
 48                                 ? TASK_SIZE / 3 * 2 \
 49                                 : 2 * TASK_SIZE / 3)
 50 
 51 /* Wow, the "main" arch needs arch dependent functions too.. :) */
 52 
 53 /* regs is struct pt_regs, pr_reg is elf_gregset_t (which is
 54    now struct_user_regs, they are different) */
 55 
 56 #define ELF_CORE_COPY_REGS(pr_reg, regs)        \
 57         memcpy(&pr_reg,regs,sizeof(elf_gregset_t)); \
 58 
 59 
 60 
 61 /* This yields a mask that user programs can use to figure out what
 62    instruction set this CPU supports. */
 63 
 64 #define ELF_HWCAP (0)
 65 
 66 /* This yields a string that ld.so will use to load implementation
 67    specific libraries for optimization.  This is more specific in
 68    intent than poking at uname or /proc/cpuinfo.
 69 
 70    For the moment, we have only optimizations for the Intel generations,
 71    but that could change... */
 72 
 73 #define ELF_PLATFORM (NULL)
 74 
 75 #ifdef __KERNEL__
 76 #define SET_PERSONALITY(ex, ibcs2) \
 77         current->personality = (ibcs2 ? PER_SVR4 : PER_LINUX)
 78 #endif
 79 
 80 #endif
 81 

~ [ source navigation ] ~ [ diff markup ] ~ [ identifier search ] ~ [ freetext search ] ~ [ file search ] ~

This page was automatically generated by the LXR engine.
Visit the LXR main site for more information.