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
This commit is contained in:
Konstantin Belousov 2018-05-22 13:30:56 +00:00
parent 67ad3c0bf9
commit a3c7cd11d2

View File

@ -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