ftp://ftp.kernel.org/pub/linux/kernel/v2.6/linux-2.6.6.tar.bz2
[linux-2.6.git] / include / asm-h8300 / elf.h
1 #ifndef __ASMH8300_ELF_H
2 #define __ASMH8300_ELF_H
3
4 /*
5  * ELF register definitions..
6  */
7
8 #include <linux/config.h>
9 #include <asm/ptrace.h>
10 #include <asm/user.h>
11
12 typedef unsigned long elf_greg_t;
13
14 #define ELF_NGREG (sizeof(struct user_regs_struct) / sizeof(elf_greg_t))
15 typedef elf_greg_t elf_gregset_t[ELF_NGREG];
16
17 typedef struct user_m68kfp_struct elf_fpregset_t;
18
19 /*
20  * This is used to ensure we don't load something for the wrong architecture.
21  */
22 #define elf_check_arch(x) ((x)->e_machine == EM_68K)
23
24 /*
25  * These are used to set parameters in the core dumps.
26  */
27 #define ELF_CLASS       ELFCLASS32
28 #define ELF_DATA        ELFDATA2MSB
29 #define ELF_ARCH        EM_H8_300H
30
31 #define ELF_PLAT_INIT(_r)       _r->er1 = 0
32
33 #define USE_ELF_CORE_DUMP
34 #define ELF_EXEC_PAGESIZE       4096
35 #endif
36
37 /* This is the location that an ET_DYN program is loaded if exec'ed.  Typical
38    use of this is to invoke "./ld.so someprog" to test out a new version of
39    the loader.  We need to make sure that it is out of the way of the program
40    that it will "exec", and that there is sufficient room for the brk.  */
41
42 #define ELF_ET_DYN_BASE         0xD0000000UL
43
44 /* This yields a mask that user programs can use to figure out what
45    instruction set this cpu supports.  */
46
47 #define ELF_HWCAP       (0)
48
49 /* This yields a string that ld.so will use to load implementation
50    specific libraries for optimization.  This is more specific in
51    intent than poking at uname or /proc/cpuinfo.  */
52
53 #define ELF_PLATFORM  (NULL)
54
55 #ifdef __KERNEL__
56 #define SET_PERSONALITY(ex, ibcs2) set_personality(PER_LINUX)
57 #endif