Author: kib
Date: Mon Jul 18 04:34:42 2016
New Revision: 302983
URL: https://svnweb.freebsd.org/changeset/base/302983

Log:
  MFC r302573:
  Fill tf_trapno for trap frames created for syscall.

Modified:
  stable/10/sys/i386/i386/exception.s
Directory Properties:
  stable/10/   (props changed)

Modified: stable/10/sys/i386/i386/exception.s
==============================================================================
--- stable/10/sys/i386/i386/exception.s Mon Jul 18 04:33:12 2016        
(r302982)
+++ stable/10/sys/i386/i386/exception.s Mon Jul 18 04:34:42 2016        
(r302983)
@@ -235,7 +235,7 @@ IDTVEC(lcall_syscall)
        pushfl                          /* save eflags */
        popl    8(%esp)                 /* shuffle into tf_eflags */
        pushl   $7                      /* sizeof "lcall 7,0" */
-       subl    $4,%esp                 /* skip over tf_trapno */
+       pushl   $0                      /* tf_trapno */
        pushal
        pushl   $0
        movw    %ds,(%esp)
@@ -264,7 +264,7 @@ IDTVEC(lcall_syscall)
        SUPERALIGN_TEXT
 IDTVEC(int0x80_syscall)
        pushl   $2                      /* sizeof "int 0x80" */
-       subl    $4,%esp                 /* skip over tf_trapno */
+       pushl   $0                      /* tf_trapno */
        pushal
        pushl   $0
        movw    %ds,(%esp)
_______________________________________________
svn-src-all@freebsd.org mailing list
https://lists.freebsd.org/mailman/listinfo/svn-src-all
To unsubscribe, send any mail to "svn-src-all-unsubscr...@freebsd.org"

Reply via email to