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 */
_______________________________________________
svn-src-all@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/svn-src-all
To unsubscribe, send any mail to "svn-src-all-unsubscr...@freebsd.org"

Reply via email to