diff options
author | Andreas Schwab <schwab@linux-m68k.org> | 2010-01-30 05:20:59 -0500 |
---|---|---|
committer | Benjamin Herrenschmidt <benh@kernel.crashing.org> | 2010-01-31 22:00:30 -0500 |
commit | 94f28da8409c6059135e89ac64a0839993124155 (patch) | |
tree | 50849d023a554e46a11a5102172f6bcb65027fe1 /arch/powerpc/include/asm/elf.h | |
parent | bf647fafda6515adf5ba84249fd08f64b5a9ec21 (diff) |
powerpc: TIF_ABI_PENDING bit removal
Here are the powerpc bits to remove TIF_ABI_PENDING now that
set_personality() is called at the appropriate place in exec.
Signed-off-by: Andreas Schwab <schwab@linux-m68k.org>
Signed-off-by: Benjamin Herrenschmidt <benh@kernel.crashing.org>
Diffstat (limited to 'arch/powerpc/include/asm/elf.h')
-rw-r--r-- | arch/powerpc/include/asm/elf.h | 8 |
1 files changed, 2 insertions, 6 deletions
diff --git a/arch/powerpc/include/asm/elf.h b/arch/powerpc/include/asm/elf.h index 17828ad411eb..c376eda15313 100644 --- a/arch/powerpc/include/asm/elf.h +++ b/arch/powerpc/include/asm/elf.h | |||
@@ -235,14 +235,10 @@ typedef elf_vrregset_t elf_fpxregset_t; | |||
235 | #ifdef __powerpc64__ | 235 | #ifdef __powerpc64__ |
236 | # define SET_PERSONALITY(ex) \ | 236 | # define SET_PERSONALITY(ex) \ |
237 | do { \ | 237 | do { \ |
238 | unsigned long new_flags = 0; \ | ||
239 | if ((ex).e_ident[EI_CLASS] == ELFCLASS32) \ | 238 | if ((ex).e_ident[EI_CLASS] == ELFCLASS32) \ |
240 | new_flags = _TIF_32BIT; \ | 239 | set_thread_flag(TIF_32BIT); \ |
241 | if ((current_thread_info()->flags & _TIF_32BIT) \ | ||
242 | != new_flags) \ | ||
243 | set_thread_flag(TIF_ABI_PENDING); \ | ||
244 | else \ | 240 | else \ |
245 | clear_thread_flag(TIF_ABI_PENDING); \ | 241 | clear_thread_flag(TIF_32BIT); \ |
246 | if (personality(current->personality) != PER_LINUX32) \ | 242 | if (personality(current->personality) != PER_LINUX32) \ |
247 | set_personality(PER_LINUX | \ | 243 | set_personality(PER_LINUX | \ |
248 | (current->personality & (~PER_MASK))); \ | 244 | (current->personality & (~PER_MASK))); \ |