svn commit: r334040 - head/sys/i386/include

Konstantin Belousov kib at FreeBSD.org
Tue May 22 13:30:57 UTC 2018


Author: kib
Date: Tue May 22 13:30:56 2018
New Revision: 334040
URL: https://svnweb.freebsd.org/changeset/base/334040

Log:
  Fix double-load of %cr3 and double-copy of the stack frame for the
  kernel entry from userspace vm86.
  
  Sponsored by:	The FreeBSD Foundation
  MFC after:	1 week

Modified:
  head/sys/i386/include/asmacros.h

Modified: head/sys/i386/include/asmacros.h
==============================================================================
--- head/sys/i386/include/asmacros.h	Tue May 22 13:28:05 2018	(r334039)
+++ head/sys/i386/include/asmacros.h	Tue May 22 13:30:56 2018	(r334040)
@@ -218,7 +218,7 @@
 	testl	$PCB_VM86CALL, PCB_FLAGS(%eax)
 	jnz	3f
 	NMOVE_STACKS
-	jmp	2f
+	jmp	3f
 1:	testb	$SEL_RPL_MASK, TF_CS(%esp)
 	jz	3f
 2:	MOVE_STACKS


More information about the svn-src-all mailing list