From nobody Fri Sep 02 14:43:50 2022 X-Original-To: dev-commits-src-main@mlmmj.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mlmmj.nyi.freebsd.org (Postfix) with ESMTP id 4MK0zC13glz4Zmp7; Fri, 2 Sep 2022 14:43:51 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from mxrelay.nyi.freebsd.org (mxrelay.nyi.freebsd.org [IPv6:2610:1c1:1:606c::19:3]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (4096 bits) client-digest SHA256) (Client CN "mxrelay.nyi.freebsd.org", Issuer "R3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4MK0zC0Z3Vz3QD3; Fri, 2 Sep 2022 14:43:51 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1662129831; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=HkJ1n1O2+2zk5IsFPpO4lwbZH6G4wxGzb4eYsbyhycY=; b=oOd33R68N+WpkofGFxEdu1tlzHwfdW27zcUoYD2bkbBC3aWaQ2NZdA+EzgBicSuJTfWcvW QiKaDjVtU4H8II2vL185ceHBpAuVZEoJ+mFbA2+JTjWUbsZCxgykDBYxiPaTaVqI4T33jl lUE/q0/KiIQF2D+X/auPSOdIlmS+thWlVRq6KmegyASauXwpwE0RuyMZTs9g8wLTuHJOps KlZkkICttMQ3RCNuyJPVwlyB0yhOLvyUh+wiVuOpSBu2KJUguTBdmp7QGZIjLiqOeKgjGw cI6tFsUYUHU5dOQQ9DZeHkcR3pkbtHabNjQT3a9Q+KEK++CPV52ONFPaOIyAcw== Received: from gitrepo.freebsd.org (gitrepo.freebsd.org [IPv6:2610:1c1:1:6068::e6a:5]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (Client did not present a certificate) by mxrelay.nyi.freebsd.org (Postfix) with ESMTPS id 4MK0zB6k8wzr3C; Fri, 2 Sep 2022 14:43:50 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from gitrepo.freebsd.org ([127.0.1.44]) by gitrepo.freebsd.org (8.16.1/8.16.1) with ESMTP id 282Ehoqv004921; Fri, 2 Sep 2022 14:43:50 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.16.1/8.16.1/Submit) id 282Eho2k004920; Fri, 2 Sep 2022 14:43:50 GMT (envelope-from git) Date: Fri, 2 Sep 2022 14:43:50 GMT Message-Id: <202209021443.282Eho2k004920@gitrepo.freebsd.org> To: src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-main@FreeBSD.org From: Tijl Coosemans Subject: git: cfdc649e455b - main - i386 doreti: Fix calculation of stack frame size List-Id: Commit messages for the main branch of the src repository List-Archive: https://lists.freebsd.org/archives/dev-commits-src-main List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-dev-commits-src-main@freebsd.org X-BeenThere: dev-commits-src-main@freebsd.org MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Git-Committer: tijl X-Git-Repository: src X-Git-Refname: refs/heads/main X-Git-Reftype: branch X-Git-Commit: cfdc649e455bc0d37d42c46b59360462e93b4300 Auto-Submitted: auto-generated ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1662129831; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=HkJ1n1O2+2zk5IsFPpO4lwbZH6G4wxGzb4eYsbyhycY=; b=mnpEmWU1j1D1ZocG0YlUq14CbPXTi/dlh7KT8gYSgWtJ/5c5oBympWYuY5NrpnzSKsZEvR FLdCeynmZGHGchfzuMYVSVVAx1Ur9zSl3spoNS8C1JmwuguiEBNtIn3Z+xx6OLg9D8LHdN 1GEoyLup1GfNV0swyyqwve5cCWfUiSc2L5//FUDyV1IUPPKGkJOq0Mka1AUxZymq2I4Y5P CwOm44KXpN8O4zk2RWLnoqh4+n41tB5ht/2Nn3WEgemOGcNn35T28tV6mYHmz2mCOHcFKn nyOaBHpJPt7alZn9GGuSoSpF/ppAybjQzhHYo4f4awcFlBZMKq/ATU1ZMKx96Q== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1662129831; a=rsa-sha256; cv=none; b=kNpGbZbeE5uiJKMC8JhetImLY0P4mbWOdK581VN7KVA82V4L2g+kV03jAdto+wJ2XDmnCf aurIem/Sa7Z6/jw9dGQiL2wpnxl95wZljnhnBY4ibzz9JcNh1vE7fCdrGwvm2xgt/SQOvI k0wghlKCSXMdFLqcRXw+KKwn6VlcAUqHil4pMc949Ecma48nzp6zKWE1jkiLf/1fMm8M18 VD3M9rG/SaV5MEDer9saDP9vsKfYZ6boo02/G9ODbHk6+WmyqhDHlmoQwN2eSBC2Mw7e5n +yztYCJw2giE6BBAvXRrXEzzUKQ0Ge99DEVIVH3k/gSKN7446r5Y6E3mePBC5A== ARC-Authentication-Results: i=1; mx1.freebsd.org; none X-ThisMailContainsUnwantedMimeParts: N The branch main has been updated by tijl: URL: https://cgit.FreeBSD.org/src/commit/?id=cfdc649e455bc0d37d42c46b59360462e93b4300 commit cfdc649e455bc0d37d42c46b59360462e93b4300 Author: Tijl Coosemans AuthorDate: 2022-09-02 14:16:35 +0000 Commit: Tijl Coosemans CommitDate: 2022-09-02 14:41:52 +0000 i386 doreti: Fix calculation of stack frame size Reviewed by: kib Fixes: e8b2980e4a12 - i386 doreti: stop saving/restoring %ecx --- sys/i386/i386/exception.s | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sys/i386/i386/exception.s b/sys/i386/i386/exception.s index 2373fa425210..ab6c83843bfe 100644 --- a/sys/i386/i386/exception.s +++ b/sys/i386/i386/exception.s @@ -530,7 +530,7 @@ doreti_exit: testl $PSL_VM,TF_EFLAGS(%esp) jz 2f /* PCB_VM86CALL is not set */ addl $VM86_STACK_SPACE, %ecx -2: subl $TF_SZ, %edx +2: subl %ecx, %edx movl %edx, %edi rep; movsb movl %edx, %esp