Date: Sun, 11 Sep 2011 18:00:46 +0000 (UTC) From: Konstantin Belousov <kib@FreeBSD.org> To: src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org Subject: svn commit: r225483 - head/sys/amd64/amd64 Message-ID: <201109111800.p8BI0kT8089744@svn.freebsd.org>
next in thread | raw e-mail | index | archive | help
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 */
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201109111800.p8BI0kT8089744>