From: Greg Kroah-Hartman Date: Thu, 4 Feb 2010 16:59:27 +0000 (-0800) Subject: another .32 patch X-Git-Tag: v2.6.32.8~2 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=c2846447fc922df45ad45a85e57f5519afdeedb3;p=thirdparty%2Fkernel%2Fstable-queue.git another .32 patch --- diff --git a/queue-2.6.32/powerpc-tif_abi_pending-bit-removal.patch b/queue-2.6.32/powerpc-tif_abi_pending-bit-removal.patch new file mode 100644 index 00000000000..7412e0f97bc --- /dev/null +++ b/queue-2.6.32/powerpc-tif_abi_pending-bit-removal.patch @@ -0,0 +1,80 @@ +From 94f28da8409c6059135e89ac64a0839993124155 Mon Sep 17 00:00:00 2001 +From: Andreas Schwab +Date: Sat, 30 Jan 2010 10:20:59 +0000 +Subject: powerpc: TIF_ABI_PENDING bit removal + +From: Andreas Schwab + +commit 94f28da8409c6059135e89ac64a0839993124155 upstream. + +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 +Signed-off-by: Benjamin Herrenschmidt +Signed-off-by: Greg Kroah-Hartman + +--- + arch/powerpc/include/asm/elf.h | 8 ++------ + arch/powerpc/include/asm/thread_info.h | 2 -- + arch/powerpc/kernel/process.c | 12 ------------ + 3 files changed, 2 insertions(+), 20 deletions(-) + +--- a/arch/powerpc/include/asm/elf.h ++++ b/arch/powerpc/include/asm/elf.h +@@ -236,14 +236,10 @@ typedef elf_vrregset_t elf_fpxregset_t; + #ifdef __powerpc64__ + # define SET_PERSONALITY(ex) \ + do { \ +- unsigned long new_flags = 0; \ + if ((ex).e_ident[EI_CLASS] == ELFCLASS32) \ +- new_flags = _TIF_32BIT; \ +- if ((current_thread_info()->flags & _TIF_32BIT) \ +- != new_flags) \ +- set_thread_flag(TIF_ABI_PENDING); \ ++ set_thread_flag(TIF_32BIT); \ + else \ +- clear_thread_flag(TIF_ABI_PENDING); \ ++ clear_thread_flag(TIF_32BIT); \ + if (personality(current->personality) != PER_LINUX32) \ + set_personality(PER_LINUX | \ + (current->personality & (~PER_MASK))); \ +--- a/arch/powerpc/include/asm/thread_info.h ++++ b/arch/powerpc/include/asm/thread_info.h +@@ -111,7 +111,6 @@ static inline struct thread_info *curren + #define TIF_NOTIFY_RESUME 13 /* callback before returning to user */ + #define TIF_FREEZE 14 /* Freezing for suspend */ + #define TIF_RUNLATCH 15 /* Is the runlatch enabled? */ +-#define TIF_ABI_PENDING 16 /* 32/64 bit switch needed */ + + /* as above, but as bit values */ + #define _TIF_SYSCALL_TRACE (1<thread.dabr) { diff --git a/queue-2.6.32/series b/queue-2.6.32/series index 0627764bebf..0c3d2bf662f 100644 --- a/queue-2.6.32/series +++ b/queue-2.6.32/series @@ -71,3 +71,4 @@ uartlite-fix-crash-when-using-as-console.patch pktcdvd-removing-device-does-not-remove-its-sysfs-dir.patch ath9k-fix-eeprom-ini-values-override-for-2ghz-only-cards.patch ath9k-fix-beacon-slot-buffer-leak.patch +powerpc-tif_abi_pending-bit-removal.patch