]> bbs.cooldavid.org Git - net-next-2.6.git/blobdiff - arch/ia64/kernel/process.c
[IA64] Change SET_PERSONALITY to comply with comment in binfmt_elf.c.
[net-next-2.6.git] / arch / ia64 / kernel / process.c
index 2e33665d9c18db01046f41e64002db351a08f180..a4da715a360ca74c01b0a3c55f39ef43179c3fc3 100644 (file)
@@ -721,8 +721,11 @@ flush_thread (void)
        /* drop floating-point and debug-register state if it exists: */
        current->thread.flags &= ~(IA64_THREAD_FPH_VALID | IA64_THREAD_DBG_VALID);
        ia64_drop_fpu(current);
-       if (IS_IA32_PROCESS(ia64_task_regs(current)))
+       if (IS_IA32_PROCESS(ia64_task_regs(current))) {
                ia32_drop_partial_page_list(current);
+               current->thread.task_size = IA32_PAGE_OFFSET;
+               set_fs(USER_DS);
+       }
 }
 
 /*