parisc: Restore possibility to execute 64-bit applications
Executing 64-bit applications was broken. This patch restores this support and cleans up some code paths. Signed-off-by: Helge Deller <deller@gmx.de>
This commit is contained in:
@@ -235,6 +235,7 @@ typedef unsigned long elf_greg_t;
|
||||
#define SET_PERSONALITY(ex) \
|
||||
({ \
|
||||
set_personality((current->personality & ~PER_MASK) | PER_LINUX); \
|
||||
clear_thread_flag(TIF_32BIT); \
|
||||
current->thread.map_base = DEFAULT_MAP_BASE; \
|
||||
current->thread.task_size = DEFAULT_TASK_SIZE; \
|
||||
})
|
||||
@@ -243,9 +244,11 @@ typedef unsigned long elf_greg_t;
|
||||
|
||||
#define COMPAT_SET_PERSONALITY(ex) \
|
||||
({ \
|
||||
set_thread_flag(TIF_32BIT); \
|
||||
current->thread.map_base = DEFAULT_MAP_BASE32; \
|
||||
current->thread.task_size = DEFAULT_TASK_SIZE32; \
|
||||
if ((ex).e_ident[EI_CLASS] == ELFCLASS32) { \
|
||||
set_thread_flag(TIF_32BIT); \
|
||||
current->thread.map_base = DEFAULT_MAP_BASE32; \
|
||||
current->thread.task_size = DEFAULT_TASK_SIZE32; \
|
||||
} else clear_thread_flag(TIF_32BIT); \
|
||||
})
|
||||
|
||||
/*
|
||||
|
Reference in New Issue
Block a user