aboutsummaryrefslogtreecommitdiff
path: root/arch/m68k/include/asm/elf.h
diff options
context:
space:
mode:
Diffstat (limited to 'arch/m68k/include/asm/elf.h')
-rw-r--r--arch/m68k/include/asm/elf.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/arch/m68k/include/asm/elf.h b/arch/m68k/include/asm/elf.h
index e9b7cda5974..f83c1d0a87c 100644
--- a/arch/m68k/include/asm/elf.h
+++ b/arch/m68k/include/asm/elf.h
@@ -113,6 +113,7 @@ typedef struct user_m68kfp_struct elf_fpregset_t;
#define ELF_PLATFORM (NULL)
-#define SET_PERSONALITY(ex) set_personality(PER_LINUX)
+#define SET_PERSONALITY(ex) \
+ set_personality(PER_LINUX | (current->personality & (~PER_MASK)))
#endif