summaryrefslogtreecommitdiffstats
path: root/arch/sparc/include/asm/elf_64.h
diff options
context:
space:
mode:
authorDavid Miller2010-01-29 06:42:02 +0100
committerLinus Torvalds2010-01-29 17:22:01 +0100
commit94673e968cbcce07fa78dac4b0ae05d24b5816e1 (patch)
treee09e561f6188801b1f5cc3b37b880931ecbaf12b /arch/sparc/include/asm/elf_64.h
parentx86: get rid of the insane TIF_ABI_PENDING bit (diff)
downloadkernel-qcow2-linux-94673e968cbcce07fa78dac4b0ae05d24b5816e1.tar.gz
kernel-qcow2-linux-94673e968cbcce07fa78dac4b0ae05d24b5816e1.tar.xz
kernel-qcow2-linux-94673e968cbcce07fa78dac4b0ae05d24b5816e1.zip
sparc: TIF_ABI_PENDING bit removal
Here are the sparc bits to remove TIF_ABI_PENDING now that set_personality() is called at the appropriate place in exec. Signed-off-by: David S. Miller <davem@davemloft.net> Cc: stable@kernel.org Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Diffstat (limited to 'arch/sparc/include/asm/elf_64.h')
-rw-r--r--arch/sparc/include/asm/elf_64.h13
1 files changed, 3 insertions, 10 deletions
diff --git a/arch/sparc/include/asm/elf_64.h b/arch/sparc/include/asm/elf_64.h
index ff66bb88537b..e67880381b84 100644
--- a/arch/sparc/include/asm/elf_64.h
+++ b/arch/sparc/include/asm/elf_64.h
@@ -195,17 +195,10 @@ static inline unsigned int sparc64_elf_hwcap(void)
#define ELF_PLATFORM (NULL)
#define SET_PERSONALITY(ex) \
-do { unsigned long new_flags = current_thread_info()->flags; \
- new_flags &= _TIF_32BIT; \
- if ((ex).e_ident[EI_CLASS] == ELFCLASS32) \
- new_flags |= _TIF_32BIT; \
+do { if ((ex).e_ident[EI_CLASS] == ELFCLASS32) \
+ set_thread_flag(TIF_32BIT); \
else \
- new_flags &= ~_TIF_32BIT; \
- if ((current_thread_info()->flags & _TIF_32BIT) \
- != new_flags) \
- set_thread_flag(TIF_ABI_PENDING); \
- else \
- clear_thread_flag(TIF_ABI_PENDING); \
+ clear_thread_flag(TIF_32BIT); \
/* flush_thread will update pgd cache */ \
if (personality(current->personality) != PER_LINUX32) \
set_personality(PER_LINUX | \