svn commit: r302984 - stable/9/sys/i386/i386

Konstantin Belousov kib at FreeBSD.org
Mon Jul 18 04:36:19 UTC 2016


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

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

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

Modified: stable/9/sys/i386/i386/exception.s
==============================================================================
--- stable/9/sys/i386/i386/exception.s	Mon Jul 18 04:34:42 2016	(r302983)
+++ stable/9/sys/i386/i386/exception.s	Mon Jul 18 04:36:18 2016	(r302984)
@@ -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)


More information about the svn-src-stable mailing list