mirror of
https://github.com/freebsd/freebsd-src
synced 2024-10-04 23:50:27 +00:00
Use a function instead of embedding non-portable asm() constructs
in C code.
This commit is contained in:
parent
39ae7d0dc4
commit
bebe1b92bd
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=103752
|
@ -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 */
|
||||
|
|
|
@ -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 */
|
||||
|
|
Loading…
Reference in a new issue