Disable interrupts, if they were enabled, before doing swapgs.

Otherwise, interrupt may happen while we run with kernel CS and usermode
gsbase.

Reviewed by:	jeff
MFC after:	1 week
This commit is contained in:
Konstantin Belousov 2009-01-14 14:20:08 +00:00
parent 07cd9ab013
commit a353a3455e

View file

@ -494,6 +494,7 @@ outofnmi:
movq %rsp,%rdx /* frame */
sti
call *%rax
cli
nocallchain:
#endif
testl %ebx,%ebx