aboutsummaryrefslogtreecommitdiff
path: root/sys/i386/bios
diff options
context:
space:
mode:
authorNate Williams <nate@FreeBSD.org>1996-03-19 16:48:38 +0000
committerNate Williams <nate@FreeBSD.org>1996-03-19 16:48:38 +0000
commit454dc1433bc923f6095b81c7e9f60f75be1d87d9 (patch)
tree9866aaf03fd5da8844e06578d073d858e36158bb /sys/i386/bios
parentfa3a1496778e601217183592324c58575c709582 (diff)
downloadsrc-454dc1433bc923f6095b81c7e9f60f75be1d87d9.tar.gz
src-454dc1433bc923f6095b81c7e9f60f75be1d87d9.zip
Call apm_int() instead of doing direct assembly calls even when we don't
care about the return value for consistency.
Notes
Notes: svn path=/head/; revision=14714
Diffstat (limited to 'sys/i386/bios')
-rw-r--r--sys/i386/bios/apm.c14
1 files changed, 11 insertions, 3 deletions
diff --git a/sys/i386/bios/apm.c b/sys/i386/bios/apm.c
index 081a1ade8c58..bb45048fa168 100644
--- a/sys/i386/bios/apm.c
+++ b/sys/i386/bios/apm.c
@@ -13,7 +13,7 @@
*
* Sep, 1994 Implemented on FreeBSD 1.1.5.1R (Toshiba AVS001WD)
*
- * $Id: apm.c,v 1.33 1996/03/19 04:39:53 nate Exp $
+ * $Id: apm.c,v 1.34 1996/03/19 04:49:13 nate Exp $
*/
#include "apm.h"
@@ -501,7 +501,11 @@ apm_cpu_idle(void)
if (sc->idle_cpu) {
if (sc->active) {
- __asm ("movw $0x5305, %ax; lcall _apm_addr");
+ u_long eax, ebx, ecx;
+
+ eax = (APM_BIOS <<8) | APM_CPUIDLE;
+ ecx = ebx = 0;
+ apm_int(&eax, &ebx, &ecx);
}
}
/*
@@ -526,7 +530,11 @@ apm_cpu_busy(void)
struct apm_softc *sc = &apm_softc;
if (sc->idle_cpu && sc->active) {
- __asm("movw $0x5306, %ax; lcall _apm_addr");
+ u_long eax, ebx, ecx;
+
+ eax = (APM_BIOS <<8) | APM_CPUIDLE;
+ ecx = ebx = 0;
+ apm_int(&eax, &ebx, &ecx);
}
}