]> git.kernelconcepts.de Git - karo-tx-linux.git/blobdiff - arch/tile/include/asm/elf.h
tile: fix personality bits handling upon exec()
[karo-tx-linux.git] / arch / tile / include / asm / elf.h
index d16d006d660e20307783eb63695c1faf5b46af46..f8ccf08f6934704924f6081476d61d85e28b181f 100644 (file)
@@ -156,12 +156,12 @@ extern int arch_setup_additional_pages(struct linux_binprm *bprm,
 #undef SET_PERSONALITY
 #define SET_PERSONALITY(ex) \
 do { \
-       current->personality = PER_LINUX; \
+       set_personality(PER_LINUX | (current->personality & (~PER_MASK))); \
        current_thread_info()->status &= ~TS_COMPAT; \
 } while (0)
 #define COMPAT_SET_PERSONALITY(ex) \
 do { \
-       current->personality = PER_LINUX_32BIT; \
+       set_personality(PER_LINUX | (current->personality & (~PER_MASK))); \
        current_thread_info()->status |= TS_COMPAT; \
 } while (0)