aboutsummaryrefslogtreecommitdiffstats
path: root/include/asm-arm/elf.h
diff options
context:
space:
mode:
authorRussell King <rmk@dyn-67.arm.linux.org.uk>2006-11-09 09:37:06 -0500
committerRussell King <rmk+kernel@arm.linux.org.uk>2006-11-30 07:24:46 -0500
commit5974eaaedee49c25d7231cc72dc0b7b9d2ef2fd7 (patch)
tree0dddc4481274a34dd798b49255b1d1355bcee27a /include/asm-arm/elf.h
parentee90dabcadd053d5dd69f3a7f8161afa2c751ace (diff)
[ARM] Move HWCAP_* definitions to asm/elf.h
Move HWCAP_* definitions into asm/elf.h, where they should belong. Since userspace wants to get at these definitions by including asm/procinfo.h, include asm/elf.h from this file if __KERNEL__ is not defined, and issue a warning suggesting to fix the program up to use asm/elf.h instead. Signed-off-by: Russell King <rmk+kernel@arm.linux.org.uk>
Diffstat (limited to 'include/asm-arm/elf.h')
-rw-r--r--include/asm-arm/elf.h16
1 files changed, 14 insertions, 2 deletions
diff --git a/include/asm-arm/elf.h b/include/asm-arm/elf.h
index 30942431e9fb..f3929307a56b 100644
--- a/include/asm-arm/elf.h
+++ b/include/asm-arm/elf.h
@@ -39,9 +39,21 @@ typedef struct user_fp elf_fpregset_t;
39#endif 39#endif
40#define ELF_ARCH EM_ARM 40#define ELF_ARCH EM_ARM
41 41
42#ifdef __KERNEL__ 42/*
43#include <asm/procinfo.h> 43 * HWCAP flags - for elf_hwcap (in kernel) and AT_HWCAP
44 */
45#define HWCAP_SWP 1
46#define HWCAP_HALF 2
47#define HWCAP_THUMB 4
48#define HWCAP_26BIT 8 /* Play it safe */
49#define HWCAP_FAST_MULT 16
50#define HWCAP_FPA 32
51#define HWCAP_VFP 64
52#define HWCAP_EDSP 128
53#define HWCAP_JAVA 256
54#define HWCAP_IWMMXT 512
44 55
56#ifdef __KERNEL__
45#ifndef __ASSEMBLY__ 57#ifndef __ASSEMBLY__
46/* 58/*
47 * This yields a mask that user programs can use to figure out what 59 * This yields a mask that user programs can use to figure out what