Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 18 Jul 2016 04:36:18 +0000 (UTC)
From:      Konstantin Belousov <kib@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-stable@freebsd.org, svn-src-stable-9@freebsd.org
Subject:   svn commit: r302984 - stable/9/sys/i386/i386
Message-ID:  <201607180436.u6I4aIbi056434@repo.freebsd.org>

next in thread | raw e-mail | index | archive | help
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)



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201607180436.u6I4aIbi056434>