Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 10 Nov 2019 09:14:23 +0000 (UTC)
From:      Konstantin Belousov <kib@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-stable@freebsd.org, svn-src-stable-12@freebsd.org
Subject:   svn commit: r354587 - stable/12/sys/amd64/amd64
Message-ID:  <201911100914.xAA9EN9H056143@repo.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: kib
Date: Sun Nov 10 09:14:22 2019
New Revision: 354587
URL: https://svnweb.freebsd.org/changeset/base/354587

Log:
  MFC r354281:
  amd64: Store %cr3 into pcpu saved_ucr3 on double fault.

Modified:
  stable/12/sys/amd64/amd64/exception.S
Directory Properties:
  stable/12/   (props changed)

Modified: stable/12/sys/amd64/amd64/exception.S
==============================================================================
--- stable/12/sys/amd64/amd64/exception.S	Sun Nov 10 09:13:12 2019	(r354586)
+++ stable/12/sys/amd64/amd64/exception.S	Sun Nov 10 09:14:22 2019	(r354587)
@@ -349,6 +349,8 @@ IDTVEC(dblfault)
 	jz	1f			/* already running with kernel GS.base */
 	swapgs
 1:	lfence
+	movq	%cr3,%rax
+	movq	%rax,PCPU(SAVED_UCR3)
 	movq	PCPU(KCR3),%rax
 	cmpq	$~0,%rax
 	je	2f



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