Use a function instead of embedding non-portable asm() constructs

in C code.
This commit is contained in:
markm 2002-09-21 18:51:19 +00:00
parent 82d8ceab83
commit 19ea227db1
2 changed files with 4 additions and 2 deletions

View File

@ -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 */

View File

@ -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 */