X-Git-Url: https://err.no/cgi-bin/gitweb.cgi?a=blobdiff_plain;f=arch%2Fx86%2Fkernel%2Fprocess_64.c;h=131c2ee7ac5618e9fc92f576f4db19676bd235af;hb=a1a33fa315b8a5a390f1132681485209500ff5b5;hp=b795e831afd65b226f590bbb1472e9d20f29367d;hpb=61c4628b538608c1a85211ed8438136adfeb9a95;p=linux-2.6 diff --git a/arch/x86/kernel/process_64.c b/arch/x86/kernel/process_64.c index b795e831af..131c2ee7ac 100644 --- a/arch/x86/kernel/process_64.c +++ b/arch/x86/kernel/process_64.c @@ -533,6 +533,10 @@ start_thread(struct pt_regs *regs, unsigned long new_ip, unsigned long new_sp) regs->ss = __USER_DS; regs->flags = 0x200; set_fs(USER_DS); + /* + * Free the old FP and other extended state + */ + free_thread_xstate(current); } EXPORT_SYMBOL_GPL(start_thread); @@ -558,7 +562,7 @@ static void hard_enable_TSC(void) write_cr4(read_cr4() & ~X86_CR4_TSD); } -void enable_TSC(void) +static void enable_TSC(void) { preempt_disable(); if (test_and_clear_thread_flag(TIF_NOTSC))