elf.h (3527a86b7ae17c949307d00e1eb7087604bca1b4) | elf.h (9b26616c8d9dae53fbac7f7cb2c6dd1308102976) |
---|---|
1/* 2 * This file is subject to the terms and conditions of the GNU General Public 3 * License. See the file "COPYING" in the main directory of this archive 4 * for more details. 5 * 6 * Much of this is taken from binutils and GNU libc ... 7 */ 8#ifndef _ASM_ELF_H 9#define _ASM_ELF_H 10 11#include <linux/fs.h> 12#include <uapi/linux/elf.h> 13 | 1/* 2 * This file is subject to the terms and conditions of the GNU General Public 3 * License. See the file "COPYING" in the main directory of this archive 4 * for more details. 5 * 6 * Much of this is taken from binutils and GNU libc ... 7 */ 8#ifndef _ASM_ELF_H 9#define _ASM_ELF_H 10 11#include <linux/fs.h> 12#include <uapi/linux/elf.h> 13 |
14#include <asm/cpu-info.h> 15#include <asm/current.h> 16 |
|
14/* ELF header e_flags defines. */ 15/* MIPS architecture level. */ 16#define EF_MIPS_ARCH_1 0x00000000 /* -mips1 code. */ 17#define EF_MIPS_ARCH_2 0x10000000 /* -mips2 code. */ 18#define EF_MIPS_ARCH_3 0x20000000 /* -mips3 code. */ 19#define EF_MIPS_ARCH_4 0x30000000 /* -mips4 code. */ 20#define EF_MIPS_ARCH_5 0x40000000 /* -mips5 code. */ 21#define EF_MIPS_ARCH_32 0x50000000 /* MIPS32 code. */ --- 270 unchanged lines hidden (view full) --- 292#define SET_PERSONALITY2(ex, state) \ 293do { \ 294 if (personality(current->personality) != PER_LINUX) \ 295 set_personality(PER_LINUX); \ 296 \ 297 mips_set_personality_fp(state); \ 298 \ 299 current->thread.abi = &mips_abi; \ | 17/* ELF header e_flags defines. */ 18/* MIPS architecture level. */ 19#define EF_MIPS_ARCH_1 0x00000000 /* -mips1 code. */ 20#define EF_MIPS_ARCH_2 0x10000000 /* -mips2 code. */ 21#define EF_MIPS_ARCH_3 0x20000000 /* -mips3 code. */ 22#define EF_MIPS_ARCH_4 0x30000000 /* -mips4 code. */ 23#define EF_MIPS_ARCH_5 0x40000000 /* -mips5 code. */ 24#define EF_MIPS_ARCH_32 0x50000000 /* MIPS32 code. */ --- 270 unchanged lines hidden (view full) --- 295#define SET_PERSONALITY2(ex, state) \ 296do { \ 297 if (personality(current->personality) != PER_LINUX) \ 298 set_personality(PER_LINUX); \ 299 \ 300 mips_set_personality_fp(state); \ 301 \ 302 current->thread.abi = &mips_abi; \ |
303 \ 304 current->thread.fpu.fcr31 = current_cpu_data.fpu_csr31; \ |
|
300} while (0) 301 302#endif /* CONFIG_32BIT */ 303 304#ifdef CONFIG_64BIT 305 306#ifdef CONFIG_MIPS32_N32 307#define __SET_PERSONALITY32_N32() \ --- 43 unchanged lines hidden (view full) --- 351 clear_thread_flag(TIF_HYBRID_FPREGS); \ 352 clear_thread_flag(TIF_32BIT_ADDR); \ 353 \ 354 if ((ex).e_ident[EI_CLASS] == ELFCLASS32) \ 355 __SET_PERSONALITY32(ex, state); \ 356 else \ 357 current->thread.abi = &mips_abi; \ 358 \ | 305} while (0) 306 307#endif /* CONFIG_32BIT */ 308 309#ifdef CONFIG_64BIT 310 311#ifdef CONFIG_MIPS32_N32 312#define __SET_PERSONALITY32_N32() \ --- 43 unchanged lines hidden (view full) --- 356 clear_thread_flag(TIF_HYBRID_FPREGS); \ 357 clear_thread_flag(TIF_32BIT_ADDR); \ 358 \ 359 if ((ex).e_ident[EI_CLASS] == ELFCLASS32) \ 360 __SET_PERSONALITY32(ex, state); \ 361 else \ 362 current->thread.abi = &mips_abi; \ 363 \ |
364 current->thread.fpu.fcr31 = current_cpu_data.fpu_csr31; \ 365 \ |
|
359 p = personality(current->personality); \ 360 if (p != PER_LINUX32 && p != PER_LINUX) \ 361 set_personality(PER_LINUX); \ 362} while (0) 363 364#endif /* CONFIG_64BIT */ 365 366#define CORE_DUMP_USE_REGSET --- 73 unchanged lines hidden --- | 366 p = personality(current->personality); \ 367 if (p != PER_LINUX32 && p != PER_LINUX) \ 368 set_personality(PER_LINUX); \ 369} while (0) 370 371#endif /* CONFIG_64BIT */ 372 373#define CORE_DUMP_USE_REGSET --- 73 unchanged lines hidden --- |