Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 2 Sep 2022 15:06:19 GMT
From:      Tijl Coosemans <tijl@FreeBSD.org>
To:        src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-branches@FreeBSD.org
Subject:   git: 5d45f99a1ed8 - stable/13 - i386 doreti: Fix calculation of stack frame size
Message-ID:  <202209021506.282F6Jhx029847@gitrepo.freebsd.org>

next in thread | raw e-mail | index | archive | help
The branch stable/13 has been updated by tijl:

URL: https://cgit.FreeBSD.org/src/commit/?id=5d45f99a1ed861618d5c4d5b4252d5eba001ad35

commit 5d45f99a1ed861618d5c4d5b4252d5eba001ad35
Author:     Tijl Coosemans <tijl@FreeBSD.org>
AuthorDate: 2022-09-02 14:16:35 +0000
Commit:     Tijl Coosemans <tijl@FreeBSD.org>
CommitDate: 2022-09-02 15:02:00 +0000

    i386 doreti: Fix calculation of stack frame size
    
    Reviewed by:    kib
    Fixes:          e8b2980e4a12 - i386 doreti: stop saving/restoring %ecx
    
    (cherry picked from commit cfdc649e455bc0d37d42c46b59360462e93b4300)
---
 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 38ec48e66e24..af654fd129a9 100644
--- a/sys/i386/i386/exception.s
+++ b/sys/i386/i386/exception.s
@@ -556,7 +556,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



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