diff options
author | Tijl Coosemans <tijl@FreeBSD.org> | 2022-09-02 14:16:35 +0000 |
---|---|---|
committer | Tijl Coosemans <tijl@FreeBSD.org> | 2022-09-02 14:41:52 +0000 |
commit | cfdc649e455bc0d37d42c46b59360462e93b4300 (patch) | |
tree | afb503aae4e2873cfb4d9e5ce3928bcdc5b9b891 | |
parent | 66c73af7ea59382ce5ca7cfb2eedb0491790276c (diff) | |
download | src-cfdc649e455bc0d37d42c46b59360462e93b4300.tar.gz src-cfdc649e455bc0d37d42c46b59360462e93b4300.zip |
i386 doreti: Fix calculation of stack frame size
Reviewed by: kib
Fixes: e8b2980e4a12 - i386 doreti: stop saving/restoring %ecx
-rw-r--r-- | sys/i386/i386/exception.s | 2 |
1 files changed, 1 insertions, 1 deletions
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 |