From 27cfca1ec98e91261b1a5355d10a8996464b63af Mon Sep 17 00:00:00 2001 From: Ralf Baechle Date: Tue, 17 Mar 1998 22:05:47 +0000 Subject: Look Ma' what I found on my harddisk ... o New faster syscalls for 2.1.x, too o Upgrade to 2.1.89. Don't try to run this. It's flaky as hell. But feel free to debug ... --- include/asm-mips/elf.h | 22 +++++++++++++++++++++- 1 file changed, 21 insertions(+), 1 deletion(-) (limited to 'include/asm-mips/elf.h') diff --git a/include/asm-mips/elf.h b/include/asm-mips/elf.h index 5cd755b38..ffdd577cd 100644 --- a/include/asm-mips/elf.h +++ b/include/asm-mips/elf.h @@ -1,5 +1,5 @@ /* - * $Id: elf.h,v 1.4 1997/12/15 10:38:30 ralf Exp $ + * $Id: elf.h,v 1.4 1997/12/16 05:36:40 ralf Exp $ */ #ifndef __ASM_MIPS_ELF_H #define __ASM_MIPS_ELF_H @@ -38,6 +38,21 @@ typedef elf_fpreg_t elf_fpregset_t[ELF_NFPREG]; memcpy((char *) &_dest, (char *) _regs, \ sizeof(struct pt_regs)); +/* This yields a mask that user programs can use to figure out what + instruction set this cpu supports. This could be done in userspace, + but it's not easy, and we've already done it here. */ + +#define ELF_HWCAP (0) + +/* This yields a string that ld.so will use to load implementation + specific libraries for optimization. This is more specific in + intent than poking at uname or /proc/cpuinfo. + + For the moment, we have only optimizations for the Intel generations, + but that could change... */ + +#define ELF_PLATFORM (NULL) + /* See comments in asm-alpha/elf.h, this is the same thing * on the MIPS. */ @@ -50,4 +65,9 @@ typedef elf_fpreg_t elf_fpregset_t[ELF_NFPREG]; #define ELF_ET_DYN_BASE (2 * TASK_SIZE / 3) +#ifdef __KERNEL__ +#define SET_PERSONALITY(ex,ibcs2) \ + current->personality = (ibcs2 ? PER_SVR4 : PER_LINUX) +#endif + #endif /* __ASM_MIPS_ELF_H */ -- cgit v1.2.3