git: 5d45f99a1ed8 - stable/13 - i386 doreti: Fix calculation of stack frame size
Date: Fri, 02 Sep 2022 15:06:19 UTC
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