git: cfdc649e455b - main - i386 doreti: Fix calculation of stack frame size
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Fri, 02 Sep 2022 14:43:50 UTC
The branch main has been updated by tijl: URL: https://cgit.FreeBSD.org/src/commit/?id=cfdc649e455bc0d37d42c46b59360462e93b4300 commit cfdc649e455bc0d37d42c46b59360462e93b4300 Author: Tijl Coosemans <tijl@FreeBSD.org> AuthorDate: 2022-09-02 14:16:35 +0000 Commit: Tijl Coosemans <tijl@FreeBSD.org> 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