diff options
| author | Mark Murray <markm@FreeBSD.org> | 2002-09-21 18:51:19 +0000 |
|---|---|---|
| committer | Mark Murray <markm@FreeBSD.org> | 2002-09-21 18:51:19 +0000 |
| commit | bebe1b92bdeee89bc6f49fd5ab68cfc6b444ed86 (patch) | |
| tree | ef19f434e4198ef785c3e81cf46ec9b37a5845b3 | |
| parent | 39ae7d0dc4bfa182daf717e74939640b27a76e21 (diff) | |
Notes
| -rw-r--r-- | sys/i386/apm/apm.c | 3 | ||||
| -rw-r--r-- | sys/i386/bios/apm.c | 3 |
2 files changed, 4 insertions, 2 deletions
diff --git a/sys/i386/apm/apm.c b/sys/i386/apm/apm.c index bd20fefaf053..4bf18c5f9440 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 */ diff --git a/sys/i386/bios/apm.c b/sys/i386/bios/apm.c index bd20fefaf053..4bf18c5f9440 100644 --- a/sys/i386/bios/apm.c +++ b/sys/i386/bios/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 */ |
