summaryrefslogtreecommitdiff
path: root/arch/microblaze/include/asm/elf.h
diff options
context:
space:
mode:
Diffstat (limited to 'arch/microblaze/include/asm/elf.h')
-rw-r--r--arch/microblaze/include/asm/elf.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/arch/microblaze/include/asm/elf.h b/arch/microblaze/include/asm/elf.h
index 834849f59ae8..640ddd4b6a9b 100644
--- a/arch/microblaze/include/asm/elf.h
+++ b/arch/microblaze/include/asm/elf.h
@@ -116,7 +116,8 @@ do { \
} while (0)
#ifdef __KERNEL__
-#define SET_PERSONALITY(ex) set_personality(PER_LINUX_32BIT)
+#define SET_PERSONALITY(ex) \
+ set_personality(PER_LINUX_32BIT | (current->personality & (~PER_MASK)))
#endif
#endif /* __uClinux__ */