Skip to contentSkip to conversation

i386 Stop deleting nt

PATCH In review Zachary Amsden 1 participant 1 message Nov 8, 2005

lore
Share & tools
lore
#0 lore raw

PATCH 11/21 i386 Stop deleting nt

Stop deleting NT bit from EFLAGS. See arch/i386/kernel/head.S line 223, which does something even better.

arch/i386/kernel/cpu/common.c +0 -5
Index: linux-2.6.14-zach-work/arch/i386/kernel/cpu/common.c
===================================================================
@@ -617,11 +617,6 @@ void __devinit cpu_init(void)
 	load_idt(&idt_descr);
 
 	/*
-	 * Delete NT
-	 */
-	__asm__("pushfl ; andl $0xffffbfff,(%esp) ; popfl");
-
-	/*
 	 * Set up and load the per-CPU TSS and LDT
 	 */
 	atomic_inc(&init_mm.mm_count);