Skip to contentSkip to conversation

i386 linux: fix VM86 code with CONFIG_PREEMPT

PATCH New Jan Beulich 1 participant 1 message Jun 2, 2006

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 i386 linux: fix VM86 code with CONFIG_PREEMPT

Apparently not having been noticed when CONFIG_X86_NO_TSS was introduced...

arch/i386/kernel/vm86.c +2 -0
Index: head-2006-05-26/arch/i386/kernel/vm86.c
===================================================================
@@ -310,7 +310,9 @@ static void do_sys_vm86(struct kernel_vm
 	if (cpu_has_sep)
 		tsk->thread.sysenter_cs = 0;
 	load_esp0(tss, &tsk->thread);
+#ifndef CONFIG_X86_NO_TSS
 	put_cpu();
+#endif
 
 	tsk->thread.screen_bitmap = info->screen_bitmap;
 	if (info->flags & VM86_SCREEN_BITMAP)

_______________________________________________
Xen-devel mailing list
[email protected]
http://lists.xensource.com/xen-devel