Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 137140
b: refs/heads/master
c: 7279dc3
h: refs/heads/master
v: v3
  • Loading branch information
Catalin Marinas authored and Russell King committed Feb 12, 2009
1 parent e356797 commit dfcc033
Show file tree
Hide file tree
Showing 4 changed files with 17 additions and 1 deletion.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 3d1228ead618b88e8606015cbabc49019981805d
refs/heads/master: 7279dc3e914635ab4b288ec39383272a06c466f3
2 changes: 2 additions & 0 deletions trunk/arch/arm/include/asm/hwcap.h
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,8 @@
#define HWCAP_CRUNCH 1024
#define HWCAP_THUMBEE 2048
#define HWCAP_NEON 4096
#define HWCAP_VFPv3 8192
#define HWCAP_VFPv3D16 16384

#if defined(__KERNEL__) && !defined(__ASSEMBLY__)
/*
Expand Down
2 changes: 2 additions & 0 deletions trunk/arch/arm/kernel/setup.c
Original file line number Diff line number Diff line change
Expand Up @@ -779,6 +779,8 @@ static const char *hwcap_str[] = {
"crunch",
"thumbee",
"neon",
"vfpv3",
"vfpv3d16",
NULL
};

Expand Down
12 changes: 12 additions & 0 deletions trunk/arch/arm/vfp/vfpmodule.c
Original file line number Diff line number Diff line change
Expand Up @@ -476,6 +476,18 @@ static int __init vfp_init(void)
* in place; report VFP support to userspace.
*/
elf_hwcap |= HWCAP_VFP;
#ifdef CONFIG_VFPv3
if (VFP_arch >= 3) {
elf_hwcap |= HWCAP_VFPv3;

/*
* Check for VFPv3 D16. CPUs in this configuration
* only have 16 x 64bit registers.
*/
if (((fmrx(MVFR0) & MVFR0_A_SIMD_MASK)) == 1)
elf_hwcap |= HWCAP_VFPv3D16;
}
#endif
#ifdef CONFIG_NEON
/*
* Check for the presence of the Advanced SIMD
Expand Down

0 comments on commit dfcc033

Please sign in to comment.