From: Andi Kleen Date: Wed, 11 Jan 2006 21:42:29 +0000 (+0100) Subject: [PATCH] x86_64: No need to remove NT during CPU setup X-Git-Tag: v2.6.16-rc1~378 X-Git-Url: https://err.no/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=636aab5ce332d88a76362797a55804c7da643467;p=linux-2.6 [PATCH] x86_64: No need to remove NT during CPU setup head.S already clears EFLAGS completely. Following an i386 patch from Zachary Amsden. Signed-off-by: Andi Kleen Signed-off-by: Linus Torvalds --- diff --git a/arch/x86_64/kernel/setup64.c b/arch/x86_64/kernel/setup64.c index 06dc354375..7b7131d8bc 100644 --- a/arch/x86_64/kernel/setup64.c +++ b/arch/x86_64/kernel/setup64.c @@ -223,13 +223,6 @@ void __cpuinit cpu_init (void) asm volatile("lidt %0" :: "m" (idt_descr)); memcpy(me->thread.tls_array, cpu_gdt_table[cpu], GDT_ENTRY_TLS_ENTRIES * 8); - - /* - * Delete NT - */ - - asm volatile("pushfq ; popq %%rax ; btr $14,%%rax ; pushq %%rax ; popfq" ::: "eax"); - syscall_init(); wrmsrl(MSR_FS_BASE, 0);