mirror of
https://github.com/freebsd/freebsd-src
synced 2024-11-05 18:22:52 +00:00
Don't push/pop the return-val register. (DUH!)
This commit is contained in:
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
|
@ -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"
|
||||||
|
|
|
@ -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"
|
||||||
|
|
Loading…
Reference in a new issue