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