Raghu Gandham | 82fa43f | 2012-03-27 11:37:17 -0700 | [diff] [blame] | 1 | /**************************************************************************** |
| 2 | **************************************************************************** |
| 3 | *** |
| 4 | *** This header was automatically generated from a Linux kernel header |
| 5 | *** of the same name, to make information necessary for userspace to |
| 6 | *** call into the kernel available to libc. It contains only constants, |
| 7 | *** structures, and macros generated from the original header, and thus, |
| 8 | *** contains no copyrightable information. |
| 9 | *** |
| 10 | *** To edit the content of this header, modify the corresponding |
| 11 | *** source file (e.g. under external/kernel-headers/original/) then |
| 12 | *** run bionic/libc/kernel/tools/update_all.py |
| 13 | *** |
| 14 | *** Any manual change here will be lost the next time this script will |
| 15 | *** be run. You've been warned! |
| 16 | *** |
| 17 | **************************************************************************** |
| 18 | ****************************************************************************/ |
| 19 | #ifndef _ASM_ELF_H |
| 20 | #define _ASM_ELF_H |
| 21 | #define EF_MIPS_ARCH_1 0x00000000 |
| 22 | #define EF_MIPS_ARCH_2 0x10000000 |
| 23 | /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ |
| 24 | #define EF_MIPS_ARCH_3 0x20000000 |
| 25 | #define EF_MIPS_ARCH_4 0x30000000 |
| 26 | #define EF_MIPS_ARCH_5 0x40000000 |
| 27 | #define EF_MIPS_ARCH_32 0x50000000 |
| 28 | /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ |
| 29 | #define EF_MIPS_ARCH_64 0x60000000 |
| 30 | #define EF_MIPS_ARCH_32R2 0x70000000 |
| 31 | #define EF_MIPS_ARCH_64R2 0x80000000 |
| 32 | #define EF_MIPS_ABI_O32 0x00001000 |
| 33 | /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ |
| 34 | #define EF_MIPS_ABI_O64 0x00002000 |
| 35 | #define PT_MIPS_REGINFO 0x70000000 |
| 36 | #define PT_MIPS_RTPROC 0x70000001 |
| 37 | #define PT_MIPS_OPTIONS 0x70000002 |
| 38 | /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ |
| 39 | #define EF_MIPS_NOREORDER 0x00000001 |
| 40 | #define EF_MIPS_PIC 0x00000002 |
| 41 | #define EF_MIPS_CPIC 0x00000004 |
| 42 | #define EF_MIPS_ABI2 0x00000020 |
| 43 | /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ |
| 44 | #define EF_MIPS_OPTIONS_FIRST 0x00000080 |
| 45 | #define EF_MIPS_32BITMODE 0x00000100 |
| 46 | #define EF_MIPS_ABI 0x0000f000 |
| 47 | #define EF_MIPS_ARCH 0xf0000000 |
| 48 | /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ |
| 49 | #define DT_MIPS_RLD_VERSION 0x70000001 |
| 50 | #define DT_MIPS_TIME_STAMP 0x70000002 |
| 51 | #define DT_MIPS_ICHECKSUM 0x70000003 |
| 52 | #define DT_MIPS_IVERSION 0x70000004 |
| 53 | /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ |
| 54 | #define DT_MIPS_FLAGS 0x70000005 |
| 55 | #define RHF_NONE 0x00000000 |
| 56 | #define RHF_HARDWAY 0x00000001 |
| 57 | #define RHF_NOTPOT 0x00000002 |
| 58 | /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ |
| 59 | #define RHF_SGI_ONLY 0x00000010 |
| 60 | #define DT_MIPS_BASE_ADDRESS 0x70000006 |
| 61 | #define DT_MIPS_CONFLICT 0x70000008 |
| 62 | #define DT_MIPS_LIBLIST 0x70000009 |
| 63 | /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ |
| 64 | #define DT_MIPS_LOCAL_GOTNO 0x7000000a |
| 65 | #define DT_MIPS_CONFLICTNO 0x7000000b |
| 66 | #define DT_MIPS_LIBLISTNO 0x70000010 |
| 67 | #define DT_MIPS_SYMTABNO 0x70000011 |
| 68 | /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ |
| 69 | #define DT_MIPS_UNREFEXTNO 0x70000012 |
| 70 | #define DT_MIPS_GOTSYM 0x70000013 |
| 71 | #define DT_MIPS_HIPAGENO 0x70000014 |
| 72 | #define DT_MIPS_RLD_MAP 0x70000016 |
| 73 | /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ |
| 74 | #define R_MIPS_NONE 0 |
| 75 | #define R_MIPS_16 1 |
| 76 | #define R_MIPS_32 2 |
| 77 | #define R_MIPS_REL32 3 |
| 78 | /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ |
| 79 | #define R_MIPS_26 4 |
| 80 | #define R_MIPS_HI16 5 |
| 81 | #define R_MIPS_LO16 6 |
| 82 | #define R_MIPS_GPREL16 7 |
| 83 | /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ |
| 84 | #define R_MIPS_LITERAL 8 |
| 85 | #define R_MIPS_GOT16 9 |
| 86 | #define R_MIPS_PC16 10 |
| 87 | #define R_MIPS_CALL16 11 |
| 88 | /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ |
| 89 | #define R_MIPS_GPREL32 12 |
| 90 | #define R_MIPS_UNUSED1 13 |
| 91 | #define R_MIPS_UNUSED2 14 |
| 92 | #define R_MIPS_UNUSED3 15 |
| 93 | /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ |
| 94 | #define R_MIPS_SHIFT5 16 |
| 95 | #define R_MIPS_SHIFT6 17 |
| 96 | #define R_MIPS_64 18 |
| 97 | #define R_MIPS_GOT_DISP 19 |
| 98 | /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ |
| 99 | #define R_MIPS_GOT_PAGE 20 |
| 100 | #define R_MIPS_GOT_OFST 21 |
| 101 | #define R_MIPS_GOTHI16 22 |
| 102 | #define R_MIPS_GOTLO16 23 |
| 103 | /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ |
| 104 | #define R_MIPS_SUB 24 |
| 105 | #define R_MIPS_INSERT_A 25 |
| 106 | #define R_MIPS_INSERT_B 26 |
| 107 | #define R_MIPS_DELETE 27 |
| 108 | /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ |
| 109 | #define R_MIPS_HIGHER 28 |
| 110 | #define R_MIPS_HIGHEST 29 |
| 111 | #define R_MIPS_CALLHI16 30 |
| 112 | #define R_MIPS_CALLLO16 31 |
| 113 | /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ |
| 114 | #define R_MIPS_LOVENDOR 100 |
| 115 | #define R_MIPS_HIVENDOR 127 |
| 116 | #define SHN_MIPS_ACCOMON 0xff00 |
| 117 | #define SHN_MIPS_TEXT 0xff01 |
| 118 | /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ |
| 119 | #define SHN_MIPS_DATA 0xff02 |
| 120 | #define SHN_MIPS_SCOMMON 0xff03 |
| 121 | #define SHN_MIPS_SUNDEFINED 0xff04 |
| 122 | #define SHT_MIPS_LIST 0x70000000 |
| 123 | /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ |
| 124 | #define SHT_MIPS_CONFLICT 0x70000002 |
| 125 | #define SHT_MIPS_GPTAB 0x70000003 |
| 126 | #define SHT_MIPS_UCODE 0x70000004 |
| 127 | #define SHT_MIPS_DEBUG 0x70000005 |
| 128 | /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ |
| 129 | #define SHT_MIPS_REGINFO 0x70000006 |
| 130 | #define SHT_MIPS_PACKAGE 0x70000007 |
| 131 | #define SHT_MIPS_PACKSYM 0x70000008 |
| 132 | #define SHT_MIPS_RELD 0x70000009 |
| 133 | /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ |
| 134 | #define SHT_MIPS_IFACE 0x7000000b |
| 135 | #define SHT_MIPS_CONTENT 0x7000000c |
| 136 | #define SHT_MIPS_OPTIONS 0x7000000d |
| 137 | #define SHT_MIPS_SHDR 0x70000010 |
| 138 | /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ |
| 139 | #define SHT_MIPS_FDESC 0x70000011 |
| 140 | #define SHT_MIPS_EXTSYM 0x70000012 |
| 141 | #define SHT_MIPS_DENSE 0x70000013 |
| 142 | #define SHT_MIPS_PDESC 0x70000014 |
| 143 | /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ |
| 144 | #define SHT_MIPS_LOCSYM 0x70000015 |
| 145 | #define SHT_MIPS_AUXSYM 0x70000016 |
| 146 | #define SHT_MIPS_OPTSYM 0x70000017 |
| 147 | #define SHT_MIPS_LOCSTR 0x70000018 |
| 148 | /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ |
| 149 | #define SHT_MIPS_LINE 0x70000019 |
| 150 | #define SHT_MIPS_RFDESC 0x7000001a |
| 151 | #define SHT_MIPS_DELTASYM 0x7000001b |
| 152 | #define SHT_MIPS_DELTAINST 0x7000001c |
| 153 | /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ |
| 154 | #define SHT_MIPS_DELTACLASS 0x7000001d |
| 155 | #define SHT_MIPS_DWARF 0x7000001e |
| 156 | #define SHT_MIPS_DELTADECL 0x7000001f |
| 157 | #define SHT_MIPS_SYMBOL_LIB 0x70000020 |
| 158 | /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ |
| 159 | #define SHT_MIPS_EVENTS 0x70000021 |
| 160 | #define SHT_MIPS_TRANSLATE 0x70000022 |
| 161 | #define SHT_MIPS_PIXIE 0x70000023 |
| 162 | #define SHT_MIPS_XLATE 0x70000024 |
| 163 | /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ |
| 164 | #define SHT_MIPS_XLATE_DEBUG 0x70000025 |
| 165 | #define SHT_MIPS_WHIRL 0x70000026 |
| 166 | #define SHT_MIPS_EH_REGION 0x70000027 |
| 167 | #define SHT_MIPS_XLATE_OLD 0x70000028 |
| 168 | /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ |
| 169 | #define SHT_MIPS_PDR_EXCEPTION 0x70000029 |
| 170 | #define SHF_MIPS_GPREL 0x10000000 |
| 171 | #define SHF_MIPS_MERGE 0x20000000 |
| 172 | #define SHF_MIPS_ADDR 0x40000000 |
| 173 | /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ |
| 174 | #define SHF_MIPS_STRING 0x80000000 |
| 175 | #define SHF_MIPS_NOSTRIP 0x08000000 |
| 176 | #define SHF_MIPS_LOCAL 0x04000000 |
| 177 | #define SHF_MIPS_NAMES 0x02000000 |
| 178 | /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ |
| 179 | #define SHF_MIPS_NODUPES 0x01000000 |
| 180 | #ifndef ELF_ARCH |
| 181 | #define ELF_NGREG 45 |
| 182 | #define ELF_NFPREG 33 |
| 183 | /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ |
| 184 | typedef unsigned long elf_greg_t; |
| 185 | typedef elf_greg_t elf_gregset_t[ELF_NGREG]; |
| 186 | typedef double elf_fpreg_t; |
| 187 | typedef elf_fpreg_t elf_fpregset_t[ELF_NFPREG]; |
| 188 | /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ |
Raghu Gandham | 988ff8f | 2012-09-21 17:13:25 -0700 | [diff] [blame^] | 189 | #define elf_check_arch(hdr) ({ int __res = 1; struct elfhdr *__h = (hdr); if (__h->e_machine != EM_MIPS) __res = 0; if (__h->e_ident[EI_CLASS] != ELFCLASS32) __res = 0; if ((__h->e_flags & EF_MIPS_ABI2) != 0) __res = 0; if (((__h->e_flags & EF_MIPS_ABI) != 0) && ((__h->e_flags & EF_MIPS_ABI) != EF_MIPS_ABI_O32)) __res = 0; __res; }) |
| 190 | #define ELF_CLASS ELFCLASS32 |
Raghu Gandham | 82fa43f | 2012-03-27 11:37:17 -0700 | [diff] [blame] | 191 | #ifdef __MIPSEB__ |
| 192 | #define ELF_DATA ELFDATA2MSB |
Raghu Gandham | 988ff8f | 2012-09-21 17:13:25 -0700 | [diff] [blame^] | 193 | /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ |
Raghu Gandham | 82fa43f | 2012-03-27 11:37:17 -0700 | [diff] [blame] | 194 | #elif __MIPSEL__ |
| 195 | #define ELF_DATA ELFDATA2LSB |
Raghu Gandham | 82fa43f | 2012-03-27 11:37:17 -0700 | [diff] [blame] | 196 | #endif |
| 197 | #define ELF_ARCH EM_MIPS |
Raghu Gandham | 988ff8f | 2012-09-21 17:13:25 -0700 | [diff] [blame^] | 198 | /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ |
Raghu Gandham | 82fa43f | 2012-03-27 11:37:17 -0700 | [diff] [blame] | 199 | #endif |
| 200 | struct mips_abi; |
Raghu Gandham | 988ff8f | 2012-09-21 17:13:25 -0700 | [diff] [blame^] | 201 | #define SET_PERSONALITY(ex, ibcs2) do { if (ibcs2) set_personality(PER_SVR4); set_personality(PER_LINUX); current->thread.abi = &mips_abi; } while (0) |
Raghu Gandham | 82fa43f | 2012-03-27 11:37:17 -0700 | [diff] [blame] | 202 | struct task_struct; |
Raghu Gandham | 988ff8f | 2012-09-21 17:13:25 -0700 | [diff] [blame^] | 203 | /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ |
Raghu Gandham | 82fa43f | 2012-03-27 11:37:17 -0700 | [diff] [blame] | 204 | #define ELF_CORE_COPY_REGS(elf_regs, regs) elf_dump_regs((elf_greg_t *)&(elf_regs), regs); |
| 205 | #define ELF_CORE_COPY_TASK_REGS(tsk, elf_regs) dump_task_regs(tsk, elf_regs) |
| 206 | #define ELF_CORE_COPY_FPREGS(tsk, elf_fpregs) dump_task_fpu(tsk, elf_fpregs) |
Raghu Gandham | 82fa43f | 2012-03-27 11:37:17 -0700 | [diff] [blame] | 207 | #define USE_ELF_CORE_DUMP |
Raghu Gandham | 988ff8f | 2012-09-21 17:13:25 -0700 | [diff] [blame^] | 208 | /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ |
Raghu Gandham | 82fa43f | 2012-03-27 11:37:17 -0700 | [diff] [blame] | 209 | #define ELF_EXEC_PAGESIZE PAGE_SIZE |
| 210 | #define ELF_HWCAP (0) |
| 211 | #define ELF_PLATFORM (NULL) |
Raghu Gandham | 82fa43f | 2012-03-27 11:37:17 -0700 | [diff] [blame] | 212 | #define ELF_PLAT_INIT(_r, load_addr) do { _r->regs[1] = _r->regs[2] = _r->regs[3] = _r->regs[4] = 0; _r->regs[5] = _r->regs[6] = _r->regs[7] = _r->regs[8] = 0; _r->regs[9] = _r->regs[10] = _r->regs[11] = _r->regs[12] = 0; _r->regs[13] = _r->regs[14] = _r->regs[15] = _r->regs[16] = 0; _r->regs[17] = _r->regs[18] = _r->regs[19] = _r->regs[20] = 0; _r->regs[21] = _r->regs[22] = _r->regs[23] = _r->regs[24] = 0; _r->regs[25] = _r->regs[26] = _r->regs[27] = _r->regs[28] = 0; _r->regs[30] = _r->regs[31] = 0; } while (0) |
Raghu Gandham | 988ff8f | 2012-09-21 17:13:25 -0700 | [diff] [blame^] | 213 | /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ |
Raghu Gandham | 82fa43f | 2012-03-27 11:37:17 -0700 | [diff] [blame] | 214 | #ifndef ELF_ET_DYN_BASE |
| 215 | #define ELF_ET_DYN_BASE (TASK_SIZE / 3 * 2) |
| 216 | #endif |
Raghu Gandham | 82fa43f | 2012-03-27 11:37:17 -0700 | [diff] [blame] | 217 | #endif |
Raghu Gandham | 988ff8f | 2012-09-21 17:13:25 -0700 | [diff] [blame^] | 218 | /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ |