Don't push/pop the return-val register. (DUH!)

This commit is contained in:
Poul-Henning Kamp 1994-12-16 07:31:47 +00:00
parent d90b957315
commit d71494d323
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=5122
2 changed files with 2 additions and 6 deletions

View file

@ -13,7 +13,7 @@
* *
* Sep, 1994 Implemented on FreeBSD 1.1.5.1R (Toshiba AVS001WD) * Sep, 1994 Implemented on FreeBSD 1.1.5.1R (Toshiba AVS001WD)
* *
* $Id: apm.c,v 1.8 1994/12/16 06:16:30 phk Exp $ * $Id: apm.c,v 1.9 1994/12/16 07:09:22 phk Exp $
*/ */
#include "apm.h" #include "apm.h"
@ -93,14 +93,12 @@ apm_int(u_long *eax,u_long *ebx,u_long *ecx)
__asm ("pushl %%ebp __asm ("pushl %%ebp
pushl %%edx pushl %%edx
pushl %%esi pushl %%esi
pushl %%edi
xorl %3,%3 xorl %3,%3
movl %3,%%esi movl %3,%%esi
lcall _apm_addr lcall _apm_addr
jnc 1f jnc 1f
incl %3 incl %3
1: 1:
popl %%edi
popl %%esi popl %%esi
popl %%edx popl %%edx
popl %%ebp" popl %%ebp"

View file

@ -13,7 +13,7 @@
* *
* Sep, 1994 Implemented on FreeBSD 1.1.5.1R (Toshiba AVS001WD) * Sep, 1994 Implemented on FreeBSD 1.1.5.1R (Toshiba AVS001WD)
* *
* $Id: apm.c,v 1.8 1994/12/16 06:16:30 phk Exp $ * $Id: apm.c,v 1.9 1994/12/16 07:09:22 phk Exp $
*/ */
#include "apm.h" #include "apm.h"
@ -93,14 +93,12 @@ apm_int(u_long *eax,u_long *ebx,u_long *ecx)
__asm ("pushl %%ebp __asm ("pushl %%ebp
pushl %%edx pushl %%edx
pushl %%esi pushl %%esi
pushl %%edi
xorl %3,%3 xorl %3,%3
movl %3,%%esi movl %3,%%esi
lcall _apm_addr lcall _apm_addr
jnc 1f jnc 1f
incl %3 incl %3
1: 1:
popl %%edi
popl %%esi popl %%esi
popl %%edx popl %%edx
popl %%ebp" popl %%ebp"