svn commit: r225483 - head/sys/amd64/amd64

Konstantin Belousov kib at FreeBSD.org
Sun Sep 11 18:00:46 UTC 2011


Author: kib
Date: Sun Sep 11 18:00:46 2011
New Revision: 225483
URL: http://svn.freebsd.org/changeset/base/225483

Log:
  The jump target shall be after the padding, not into it.
  
  Reported by:	alc
  Approved by:	re (bz)
  MFC after:	2 weeks

Modified:
  head/sys/amd64/amd64/exception.S

Modified: head/sys/amd64/amd64/exception.S
==============================================================================
--- head/sys/amd64/amd64/exception.S	Sun Sep 11 17:39:51 2011	(r225482)
+++ head/sys/amd64/amd64/exception.S	Sun Sep 11 18:00:46 2011	(r225483)
@@ -398,8 +398,9 @@ IDTVEC(fast_syscall)
 	movq	%rsp, %rdi
 	call	ast
 	jmp	1b
-2:	/* Restore preserved registers. */
+
 	.align	16
+2:	/* Restore preserved registers. */
 	MEXITCOUNT
 	movq	TF_RDI(%rsp),%rdi	/* bonus; preserve arg 1 */
 	movq	TF_RSI(%rsp),%rsi	/* bonus: preserve arg 2 */


More information about the svn-src-all mailing list