mirror of
https://github.com/opnsense/src.git
synced 2026-06-09 00:32:25 -04:00
Synchronize with sys/i386/i386/machdep.c revision up to 1.249.
This commit is contained in:
parent
66726744c8
commit
46060d269c
2 changed files with 32 additions and 2 deletions
|
|
@ -35,9 +35,10 @@
|
|||
* SUCH DAMAGE.
|
||||
*
|
||||
* from: @(#)machdep.c 7.4 (Berkeley) 6/3/91
|
||||
* $Id: machdep.c,v 1.43 1997/06/02 15:45:32 kato Exp $
|
||||
* $Id: machdep.c,v 1.44 1997/06/09 13:38:21 kato Exp $
|
||||
*/
|
||||
|
||||
#include "apm.h"
|
||||
#include "npx.h"
|
||||
#include "opt_sysvipc.h"
|
||||
#include "opt_ddb.h"
|
||||
|
|
@ -98,6 +99,9 @@
|
|||
|
||||
#include <net/netisr.h>
|
||||
|
||||
#if NAPM > 0
|
||||
#include <machine/apm_bios.h>
|
||||
#endif
|
||||
#include <machine/cpu.h>
|
||||
#include <machine/npx.h>
|
||||
#include <machine/reg.h>
|
||||
|
|
@ -695,6 +699,17 @@ cpu_halt(void)
|
|||
__asm__ ("hlt");
|
||||
}
|
||||
|
||||
/*
|
||||
* Turn the power off.
|
||||
*/
|
||||
void
|
||||
cpu_power_down(void)
|
||||
{
|
||||
#if NAPM > 0
|
||||
apm_power_off();
|
||||
#endif
|
||||
}
|
||||
|
||||
/*
|
||||
* Clear registers on exec
|
||||
*/
|
||||
|
|
|
|||
|
|
@ -35,9 +35,10 @@
|
|||
* SUCH DAMAGE.
|
||||
*
|
||||
* from: @(#)machdep.c 7.4 (Berkeley) 6/3/91
|
||||
* $Id: machdep.c,v 1.43 1997/06/02 15:45:32 kato Exp $
|
||||
* $Id: machdep.c,v 1.44 1997/06/09 13:38:21 kato Exp $
|
||||
*/
|
||||
|
||||
#include "apm.h"
|
||||
#include "npx.h"
|
||||
#include "opt_sysvipc.h"
|
||||
#include "opt_ddb.h"
|
||||
|
|
@ -98,6 +99,9 @@
|
|||
|
||||
#include <net/netisr.h>
|
||||
|
||||
#if NAPM > 0
|
||||
#include <machine/apm_bios.h>
|
||||
#endif
|
||||
#include <machine/cpu.h>
|
||||
#include <machine/npx.h>
|
||||
#include <machine/reg.h>
|
||||
|
|
@ -695,6 +699,17 @@ cpu_halt(void)
|
|||
__asm__ ("hlt");
|
||||
}
|
||||
|
||||
/*
|
||||
* Turn the power off.
|
||||
*/
|
||||
void
|
||||
cpu_power_down(void)
|
||||
{
|
||||
#if NAPM > 0
|
||||
apm_power_off();
|
||||
#endif
|
||||
}
|
||||
|
||||
/*
|
||||
* Clear registers on exec
|
||||
*/
|
||||
|
|
|
|||
Loading…
Reference in a new issue