]> git.proxmox.com Git - mirror_ubuntu-bionic-kernel.git/blobdiff - arch/arm64/include/asm/elf.h
arm64: introduce separated bits for mm_context_t flags
[mirror_ubuntu-bionic-kernel.git] / arch / arm64 / include / asm / elf.h
index acae781f7359ece14f713e74e168deb6e47dd68b..f4e33f8356cac47eea5396a53b60f169c9855b93 100644 (file)
@@ -139,7 +139,7 @@ typedef struct user_fpsimd_state elf_fpregset_t;
 
 #define SET_PERSONALITY(ex)                                            \
 ({                                                                     \
-       clear_bit(TIF_32BIT, &current->mm->context.flags);              \
+       current->mm->context.flags = 0;                                 \
        clear_thread_flag(TIF_32BIT);                                   \
        current->personality &= ~READ_IMPLIES_EXEC;                     \
 })
@@ -195,7 +195,7 @@ typedef compat_elf_greg_t           compat_elf_gregset_t[COMPAT_ELF_NGREG];
  */
 #define COMPAT_SET_PERSONALITY(ex)                                     \
 ({                                                                     \
-       set_bit(TIF_32BIT, &current->mm->context.flags);                \
+       current->mm->context.flags = MMCF_AARCH32;                      \
        set_thread_flag(TIF_32BIT);                                     \
  })
 #define COMPAT_ARCH_DLINFO