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

in C code.
This commit is contained in:
Mark Murray 2002-09-21 18:51:19 +00:00
parent 39ae7d0dc4
commit bebe1b92bd
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=103752
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 */