|
@@ -138,7 +138,11 @@ typedef struct user_fpsimd_state elf_fpregset_t;
|
|
*/
|
|
*/
|
|
#define ELF_PLAT_INIT(_r, load_addr) (_r)->regs[0] = 0
|
|
#define ELF_PLAT_INIT(_r, load_addr) (_r)->regs[0] = 0
|
|
|
|
|
|
-#define SET_PERSONALITY(ex) clear_thread_flag(TIF_32BIT);
|
|
|
|
|
|
+#define SET_PERSONALITY(ex) \
|
|
|
|
+({ \
|
|
|
|
+ clear_bit(TIF_32BIT, ¤t->mm->context.flags); \
|
|
|
|
+ clear_thread_flag(TIF_32BIT); \
|
|
|
|
+})
|
|
|
|
|
|
/* update AT_VECTOR_SIZE_ARCH if the number of NEW_AUX_ENT entries changes */
|
|
/* update AT_VECTOR_SIZE_ARCH if the number of NEW_AUX_ENT entries changes */
|
|
#define ARCH_DLINFO \
|
|
#define ARCH_DLINFO \
|
|
@@ -183,7 +187,11 @@ typedef compat_elf_greg_t compat_elf_gregset_t[COMPAT_ELF_NGREG];
|
|
((x)->e_flags & EF_ARM_EABI_MASK))
|
|
((x)->e_flags & EF_ARM_EABI_MASK))
|
|
|
|
|
|
#define compat_start_thread compat_start_thread
|
|
#define compat_start_thread compat_start_thread
|
|
-#define COMPAT_SET_PERSONALITY(ex) set_thread_flag(TIF_32BIT);
|
|
|
|
|
|
+#define COMPAT_SET_PERSONALITY(ex) \
|
|
|
|
+({ \
|
|
|
|
+ set_bit(TIF_32BIT, ¤t->mm->context.flags); \
|
|
|
|
+ set_thread_flag(TIF_32BIT); \
|
|
|
|
+ })
|
|
#define COMPAT_ARCH_DLINFO
|
|
#define COMPAT_ARCH_DLINFO
|
|
extern int aarch32_setup_vectors_page(struct linux_binprm *bprm,
|
|
extern int aarch32_setup_vectors_page(struct linux_binprm *bprm,
|
|
int uses_interp);
|
|
int uses_interp);
|