Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 43373
b: refs/heads/master
c: 5974eaa
h: refs/heads/master
i:
  43371: 260a59d
v: v3
  • Loading branch information
Russell King authored and Russell King committed Nov 30, 2006
1 parent 110c578 commit a3bd506
Show file tree
Hide file tree
Showing 3 changed files with 20 additions and 19 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: ee90dabcadd053d5dd69f3a7f8161afa2c751ace
refs/heads/master: 5974eaaedee49c25d7231cc72dc0b7b9d2ef2fd7
16 changes: 14 additions & 2 deletions trunk/include/asm-arm/elf.h
Original file line number Diff line number Diff line change
Expand Up @@ -39,9 +39,21 @@ typedef struct user_fp elf_fpregset_t;
#endif
#define ELF_ARCH EM_ARM

#ifdef __KERNEL__
#include <asm/procinfo.h>
/*
* HWCAP flags - for elf_hwcap (in kernel) and AT_HWCAP
*/
#define HWCAP_SWP 1
#define HWCAP_HALF 2
#define HWCAP_THUMB 4
#define HWCAP_26BIT 8 /* Play it safe */
#define HWCAP_FAST_MULT 16
#define HWCAP_FPA 32
#define HWCAP_VFP 64
#define HWCAP_EDSP 128
#define HWCAP_JAVA 256
#define HWCAP_IWMMXT 512

#ifdef __KERNEL__
#ifndef __ASSEMBLY__
/*
* This yields a mask that user programs can use to figure out what
Expand Down
21 changes: 5 additions & 16 deletions trunk/include/asm-arm/procinfo.h
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
#ifndef __ASM_PROCINFO_H
#define __ASM_PROCINFO_H

#ifndef __ASSEMBLY__
#ifdef __KERNEL__

struct cpu_tlb_fns;
struct cpu_user_fns;
Expand Down Expand Up @@ -42,19 +42,8 @@ struct proc_info_list {
struct cpu_cache_fns *cache;
};

extern unsigned int elf_hwcap;

#endif /* __ASSEMBLY__ */

#define HWCAP_SWP 1
#define HWCAP_HALF 2
#define HWCAP_THUMB 4
#define HWCAP_26BIT 8 /* Play it safe */
#define HWCAP_FAST_MULT 16
#define HWCAP_FPA 32
#define HWCAP_VFP 64
#define HWCAP_EDSP 128
#define HWCAP_JAVA 256
#define HWCAP_IWMMXT 512

#else /* __KERNEL__ */
#include <asm/elf.h>
#warning "Please include asm/elf.h instead"
#endif /* __KERNEL__ */
#endif

0 comments on commit a3bd506

Please sign in to comment.