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

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

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

  1 #ifndef __PPC_ELF_H
  2 #define __PPC_ELF_H
  3 
  4 /*
  5  * ELF register definitions..
  6  */
  7 #include <asm/ptrace.h>
  8 
  9 #define ELF_NGREG       48      /* includes nip, msr, lr, etc. */
 10 #define ELF_NFPREG      33      /* includes fpscr */
 11 #define ELF_NVRREG      33      /* includes vscr */
 12 
 13 /*
 14  * These are used to set parameters in the core dumps.
 15  */
 16 #define ELF_ARCH        EM_PPC
 17 #define ELF_CLASS       ELFCLASS32
 18 #define ELF_DATA        ELFDATA2MSB
 19 
 20 /* General registers */
 21 typedef unsigned long elf_greg_t;
 22 typedef elf_greg_t elf_gregset_t[ELF_NGREG];
 23 
 24 /* Floating point registers */
 25 typedef double elf_fpreg_t;
 26 typedef elf_fpreg_t elf_fpregset_t[ELF_NFPREG];
 27 
 28 /* Altivec registers */
 29 typedef __vector128 elf_vrreg_t;
 30 typedef elf_vrreg_t elf_vrregset_t[ELF_NVRREG];
 31 
 32 #ifdef __KERNEL__
 33 
 34 /*
 35  * This is used to ensure we don't load something for the wrong architecture.
 36  */
 37 
 38 #define elf_check_arch(x) ((x)->e_machine == EM_PPC)
 39 
 40 /* This is the location that an ET_DYN program is loaded if exec'ed.  Typical
 41    use of this is to invoke "./ld.so someprog" to test out a new version of
 42    the loader.  We need to make sure that it is out of the way of the program
 43    that it will "exec", and that there is sufficient room for the brk.  */
 44 
 45 #define ELF_ET_DYN_BASE         (0x08000000)
 46 
 47 #define USE_ELF_CORE_DUMP
 48 #define ELF_EXEC_PAGESIZE       4096
 49 
 50 #define ELF_CORE_COPY_REGS(gregs, regs) \
 51         memcpy(gregs, regs, \
 52                sizeof(struct pt_regs) < sizeof(elf_gregset_t)? \
 53                sizeof(struct pt_regs): sizeof(elf_gregset_t));
 54 
 55 
 56 /* This yields a mask that user programs can use to figure out what
 57    instruction set this cpu supports.  This could be done in userspace,
 58    but it's not easy, and we've already done it here.  */
 59 
 60 #define ELF_HWCAP       (0)
 61 
 62 /* This yields a string that ld.so will use to load implementation
 63    specific libraries for optimization.  This is more specific in
 64    intent than poking at uname or /proc/cpuinfo.
 65 
 66    For the moment, we have only optimizations for the Intel generations,
 67    but that could change... */
 68 
 69 #define ELF_PLATFORM    (NULL)
 70 
 71 #define SET_PERSONALITY(ex, ibcs2) set_personality((ibcs2)?PER_SVR4:PER_LINUX)
 72 
 73 #endif /* __KERNEL__ */
 74 #endif
 75 

~ [ 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.