提交 636aab5c 编写于 作者: A Andi Kleen 提交者: Linus Torvalds

[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: NAndi Kleen <ak@suse.de>
Signed-off-by: NLinus Torvalds <torvalds@osdl.org>
上级 1f6818b9
......@@ -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);
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册