summaryrefslogtreecommitdiffstats
path: root/arch/sparc/include/asm/elf_64.h
diff options
context:
space:
mode:
authorLinus Torvalds2008-10-16 21:32:52 +0200
committerLinus Torvalds2008-10-16 21:32:52 +0200
commite4856a70cfc23266631a78e78277cf2b195babee (patch)
treee163aa148bf6ec00e1506a870adf3aeabf083f52 /arch/sparc/include/asm/elf_64.h
parentMerge branch 'docs' of git://git.lwn.net/linux-2.6 (diff)
parent[PATCH] remove unused ibcs2/PER_SVR4 in SET_PERSONALITY (diff)
downloadkernel-qcow2-linux-e4856a70cfc23266631a78e78277cf2b195babee.tar.gz
kernel-qcow2-linux-e4856a70cfc23266631a78e78277cf2b195babee.tar.xz
kernel-qcow2-linux-e4856a70cfc23266631a78e78277cf2b195babee.zip
Merge branch 'personality' of git://git390.osdl.marist.edu/pub/scm/linux-2.6
* 'personality' of git://git390.osdl.marist.edu/pub/scm/linux-2.6: [PATCH] remove unused ibcs2/PER_SVR4 in SET_PERSONALITY
Diffstat (limited to 'arch/sparc/include/asm/elf_64.h')
-rw-r--r--arch/sparc/include/asm/elf_64.h6
1 files changed, 2 insertions, 4 deletions
diff --git a/arch/sparc/include/asm/elf_64.h b/arch/sparc/include/asm/elf_64.h
index 0818a1308f4e..425c2f9be6d5 100644
--- a/arch/sparc/include/asm/elf_64.h
+++ b/arch/sparc/include/asm/elf_64.h
@@ -195,7 +195,7 @@ static inline unsigned int sparc64_elf_hwcap(void)
#define ELF_PLATFORM (NULL)
-#define SET_PERSONALITY(ex, ibcs2) \
+#define SET_PERSONALITY(ex) \
do { unsigned long new_flags = current_thread_info()->flags; \
new_flags &= _TIF_32BIT; \
if ((ex).e_ident[EI_CLASS] == ELFCLASS32) \
@@ -208,9 +208,7 @@ do { unsigned long new_flags = current_thread_info()->flags; \
else \
clear_thread_flag(TIF_ABI_PENDING); \
/* flush_thread will update pgd cache */ \
- if (ibcs2) \
- set_personality(PER_SVR4); \
- else if (current->personality != PER_LINUX32) \
+ if (current->personality != PER_LINUX32) \
set_personality(PER_LINUX); \
} while (0)