]> git.karo-electronics.de Git - karo-tx-linux.git/blobdiff - arch/x86/kernel/process_64.c
x86: get rid of the insane TIF_ABI_PENDING bit
[karo-tx-linux.git] / arch / x86 / kernel / process_64.c
index f9e033150cdf9b78e9f46f118092c51b45c4ffc8..41a26a82470ad3970721bd2c3a00c6987b3f2d1c 100644 (file)
@@ -521,6 +521,17 @@ void set_personality_64bit(void)
        current->personality &= ~READ_IMPLIES_EXEC;
 }
 
+void set_personality_ia32(void)
+{
+       /* inherit personality from parent */
+
+       /* Make sure to be in 32bit mode */
+       set_thread_flag(TIF_IA32);
+
+       /* Prepare the first "return" to user space */
+       current_thread_info()->status |= TS_COMPAT;
+}
+
 unsigned long get_wchan(struct task_struct *p)
 {
        unsigned long stack;