summaryrefslogtreecommitdiff
path: root/arch/openrisc/include/asm/elf.h
diff options
context:
space:
mode:
Diffstat (limited to 'arch/openrisc/include/asm/elf.h')
-rw-r--r--arch/openrisc/include/asm/elf.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/arch/openrisc/include/asm/elf.h b/arch/openrisc/include/asm/elf.h
index a8fe2c513070..225a7ff320ad 100644
--- a/arch/openrisc/include/asm/elf.h
+++ b/arch/openrisc/include/asm/elf.h
@@ -110,7 +110,8 @@ extern void dump_elf_thread(elf_greg_t *dest, struct pt_regs *pt);
#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 /* __KERNEL__ */
#endif