summaryrefslogtreecommitdiffstats
path: root/sys/i386/apm
diff options
context:
space:
mode:
authormarkm <markm@FreeBSD.org>2002-09-21 18:51:19 +0000
committermarkm <markm@FreeBSD.org>2002-09-21 18:51:19 +0000
commitac87fc24a674a749d2fd4c0136cf2cd69f303678 (patch)
treeef19f434e4198ef785c3e81cf46ec9b37a5845b3 /sys/i386/apm
parente97f22de41046821e2527d54aa7fee7867767ca6 (diff)
downloadFreeBSD-src-ac87fc24a674a749d2fd4c0136cf2cd69f303678.zip
FreeBSD-src-ac87fc24a674a749d2fd4c0136cf2cd69f303678.tar.gz
Use a function instead of embedding non-portable asm() constructs
in C code.
Diffstat (limited to 'sys/i386/apm')
-rw-r--r--sys/i386/apm/apm.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/sys/i386/apm/apm.c b/sys/i386/apm/apm.c
index bd20fef..4bf18c5 100644
--- a/sys/i386/apm/apm.c
+++ b/sys/i386/apm/apm.c
@@ -38,6 +38,7 @@
#include <machine/apm_bios.h>
#include <machine/clock.h>
#include <machine/pc/bios.h>
+#include <machine/cpufunc.h>
#include <machine/segments.h>
#include <machine/stdarg.h>
#include <machine/vm86.h>
@@ -647,7 +648,7 @@ apm_cpu_idle(void)
* APM driver.
*/
if (!sc->active || sc->always_halt_cpu)
- __asm("hlt"); /* wait for interrupt */
+ halt(); /* wait for interrupt */
}
/* inform APM BIOS that CPU is busy */
OpenPOWER on IntegriCloud