Commit 2677809c authored by Nicolas Pitre's avatar Nicolas Pitre Committed by Russell King

[ARM PATCH] 2443/1: enable iWMMXt on EABI binaries

Patch from Nicolas Pitre

It appears that the EF_ARM_SOFT_FLOAT is a reserved bit with the new
ARM EABI.  Since EABI is said to not support FPA (FPA emulation being
the reason why we'd want to disable iWMMXt access) we now test for any
EABI version as well to turn on iWMMXt access.

Signed-off-by: Nicolas Pitre
Signed-off-by: Russell King
parent f5e58aa1
......@@ -17,6 +17,7 @@ typedef unsigned long elf_freg_t[3];
#define EM_ARM 40
#define EF_ARM_APCS26 0x08
#define EF_ARM_SOFT_FLOAT 0x200
#define EF_ARM_EABI_MASK 0xFF000000
#define R_ARM_NONE 0
#define R_ARM_PC24 1
......@@ -120,7 +121,8 @@ extern char elf_platform[];
#define SET_PERSONALITY(ex,ibcs2) \
do { \
set_personality(PER_LINUX_32BIT); \
if ((ex).e_flags & EF_ARM_SOFT_FLOAT) \
if (((ex).e_flags & EF_ARM_EABI_MASK) || \
((ex).e_flags & EF_ARM_SOFT_FLOAT)) \
set_thread_flag(TIF_USING_IWMMXT); \
} while (0)
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment