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 /sys/i386/bios | |
parent | 39ae7d0dc4bfa182daf717e74939640b27a76e21 (diff) | |
download | src-bebe1b92bdeee89bc6f49fd5ab68cfc6b444ed86.tar.gz src-bebe1b92bdeee89bc6f49fd5ab68cfc6b444ed86.zip |
Use a function instead of embedding non-portable asm() constructs
in C code.
Notes
Notes:
svn path=/head/; revision=103752
Diffstat (limited to 'sys/i386/bios')
-rw-r--r-- | sys/i386/bios/apm.c | 3 |
1 files changed, 2 insertions, 1 deletions
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 */ |