diff options
author | markm <markm@FreeBSD.org> | 2002-09-21 18:51:19 +0000 |
---|---|---|
committer | markm <markm@FreeBSD.org> | 2002-09-21 18:51:19 +0000 |
commit | ac87fc24a674a749d2fd4c0136cf2cd69f303678 (patch) | |
tree | ef19f434e4198ef785c3e81cf46ec9b37a5845b3 /sys | |
parent | e97f22de41046821e2527d54aa7fee7867767ca6 (diff) | |
download | FreeBSD-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')
-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 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 */ diff --git a/sys/i386/bios/apm.c b/sys/i386/bios/apm.c index bd20fef..4bf18c5 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 */ |