|
@@ -344,14 +344,9 @@ extern int compat_arch_setup_additional_pages(struct linux_binprm *bprm,
|
|
|
*/
|
|
*/
|
|
|
static inline int mmap_is_ia32(void)
|
|
static inline int mmap_is_ia32(void)
|
|
|
{
|
|
{
|
|
|
-#ifdef CONFIG_X86_32
|
|
|
|
|
- return 1;
|
|
|
|
|
-#endif
|
|
|
|
|
-#ifdef CONFIG_IA32_EMULATION
|
|
|
|
|
- if (test_thread_flag(TIF_ADDR32))
|
|
|
|
|
- return 1;
|
|
|
|
|
-#endif
|
|
|
|
|
- return 0;
|
|
|
|
|
|
|
+ return config_enabled(CONFIG_X86_32) ||
|
|
|
|
|
+ (config_enabled(CONFIG_COMPAT) &&
|
|
|
|
|
+ test_thread_flag(TIF_ADDR32));
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
/* Do not change the values. See get_align_mask() */
|
|
/* Do not change the values. See get_align_mask() */
|