Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 22 May 2018 13:30:57 +0000 (UTC)
From:      Konstantin Belousov <kib@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org
Subject:   svn commit: r334040 - head/sys/i386/include
Message-ID:  <201805221330.w4MDUvXi006318@repo.freebsd.org>

next in thread | raw e-mail | index | archive | help
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



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201805221330.w4MDUvXi006318>