summaryrefslogtreecommitdiffstats
path: root/arch/avr32/include/asm/elf.h
diff options
context:
space:
mode:
Diffstat (limited to 'arch/avr32/include/asm/elf.h')
-rw-r--r--arch/avr32/include/asm/elf.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/arch/avr32/include/asm/elf.h b/arch/avr32/include/asm/elf.h
index 3b3159b..e2c3287 100644
--- a/arch/avr32/include/asm/elf.h
+++ b/arch/avr32/include/asm/elf.h
@@ -102,6 +102,7 @@ typedef struct user_fpu_struct elf_fpregset_t;
#define ELF_PLATFORM (NULL)
-#define SET_PERSONALITY(ex) set_personality(PER_LINUX_32BIT)
+#define SET_PERSONALITY(ex) \
+ set_personality(PER_LINUX_32BIT | (current->personality & (~PER_MASK)))
#endif /* __ASM_AVR32_ELF_H */
OpenPOWER on IntegriCloud