Skip to content

Commit

Permalink
[ARM] 4054/1: ep93xx: add HWCAP_CRUNCH
Browse files Browse the repository at this point in the history
Add HWCAP_CRUNCH so that the dynamic linker knows whether it can
use Crunch-optimised libraries or not.

Signed-off-by: Lennert Buytenhek <buytenh@wantstofly.org>
Signed-off-by: Russell King <rmk+kernel@arm.linux.org.uk>
  • Loading branch information
Lennert Buytenhek authored and Russell King committed Dec 18, 2006
1 parent 9bcb533 commit 99e4a6d
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 0 deletions.
1 change: 1 addition & 0 deletions arch/arm/kernel/setup.c
Original file line number Diff line number Diff line change
Expand Up @@ -855,6 +855,7 @@ static const char *hwcap_str[] = {
"edsp",
"java",
"iwmmxt",
"crunch",
NULL
};

Expand Down
4 changes: 4 additions & 0 deletions arch/arm/mach-ep93xx/core.c
Original file line number Diff line number Diff line change
Expand Up @@ -477,4 +477,8 @@ void __init ep93xx_init_devices(void)

platform_device_register(&ep93xx_rtc_device);
platform_device_register(&ep93xx_ohci_device);

#ifdef CONFIG_CRUNCH
elf_hwcap |= HWCAP_CRUNCH;
#endif
}
1 change: 1 addition & 0 deletions include/asm-arm/elf.h
Original file line number Diff line number Diff line change
Expand Up @@ -52,6 +52,7 @@ typedef struct user_fp elf_fpregset_t;
#define HWCAP_EDSP 128
#define HWCAP_JAVA 256
#define HWCAP_IWMMXT 512
#define HWCAP_CRUNCH 1024

#ifdef __KERNEL__
#ifndef __ASSEMBLY__
Expand Down

0 comments on commit 99e4a6d

Please sign in to comment.