Skip to content

Commit

Permalink
[PATCH] x86_64: No need to remove NT during CPU setup
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Andi Kleen authored and Linus Torvalds committed Jan 12, 2006
1 parent 1f6818b commit 636aab5
Showing 1 changed file with 0 additions and 7 deletions.
7 changes: 0 additions & 7 deletions arch/x86_64/kernel/setup64.c
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

0 comments on commit 636aab5

Please sign in to comment.