svn commit: r335857 - stable/11/sys/amd64/include

Konstantin Belousov kib at FreeBSD.org
Mon Jul 2 07:58:58 UTC 2018


Author: kib
Date: Mon Jul  2 07:58:57 2018
New Revision: 335857
URL: https://svnweb.freebsd.org/changeset/base/335857

Log:
  MFC r335635:
  Do not leave stray qword on top of stack for interrupts and exceptions
  without error code.  Doing so it mis-aligned the stack.
  
  PR:	229222

Modified:
  stable/11/sys/amd64/include/asmacros.h
Directory Properties:
  stable/11/   (props changed)

Modified: stable/11/sys/amd64/include/asmacros.h
==============================================================================
--- stable/11/sys/amd64/include/asmacros.h	Mon Jul  2 05:19:44 2018	(r335856)
+++ stable/11/sys/amd64/include/asmacros.h	Mon Jul  2 07:58:57 2018	(r335857)
@@ -185,7 +185,7 @@
 	movq	PCPU(KCR3),%rax
 	movq	%rax,%cr3
 	movq	PCPU(RSP0),%rax
-	subq	$PTI_SIZE,%rax
+	subq	$PTI_SIZE - 8 * (1 - \has_err),%rax
 	MOVE_STACKS	((PTI_SIZE / 8) - 1 + \has_err)
 	movq	%rax,%rsp
 	popq	%rdx


More information about the svn-src-all mailing list