[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 <ak@suse.de> Signed-off-by: Linus Torvalds <torvalds@osdl.org>
This commit is contained in:
committed by
Linus Torvalds
parent
1f6818b90d
commit
636aab5ce3
@@ -223,13 +223,6 @@ void __cpuinit cpu_init (void)
|
|||||||
asm volatile("lidt %0" :: "m" (idt_descr));
|
asm volatile("lidt %0" :: "m" (idt_descr));
|
||||||
|
|
||||||
memcpy(me->thread.tls_array, cpu_gdt_table[cpu], GDT_ENTRY_TLS_ENTRIES * 8);
|
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();
|
syscall_init();
|
||||||
|
|
||||||
wrmsrl(MSR_FS_BASE, 0);
|
wrmsrl(MSR_FS_BASE, 0);
|
||||||
|
Reference in New Issue
Block a user