diff options
author | kato <kato@FreeBSD.org> | 1997-06-15 16:35:13 +0000 |
---|---|---|
committer | kato <kato@FreeBSD.org> | 1997-06-15 16:35:13 +0000 |
commit | 41888e8395ee3814b089803fbf3d71f80b9d2ab9 (patch) | |
tree | 46cf892f8ef6a7a15184478bd2257c9d8074da96 | |
parent | b3ecaa3962000d2cb71873ec057bf5c9c7912631 (diff) | |
download | FreeBSD-src-41888e8395ee3814b089803fbf3d71f80b9d2ab9.zip FreeBSD-src-41888e8395ee3814b089803fbf3d71f80b9d2ab9.tar.gz |
Synchronize with sys/i386/i386/machdep.c revision up to 1.249.
-rw-r--r-- | sys/pc98/i386/machdep.c | 17 | ||||
-rw-r--r-- | sys/pc98/pc98/machdep.c | 17 |
2 files changed, 32 insertions, 2 deletions
diff --git a/sys/pc98/i386/machdep.c b/sys/pc98/i386/machdep.c index a89a96d..67b8ae7 100644 --- a/sys/pc98/i386/machdep.c +++ b/sys/pc98/i386/machdep.c @@ -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> @@ -696,6 +700,17 @@ cpu_halt(void) } /* + * Turn the power off. + */ +void +cpu_power_down(void) +{ +#if NAPM > 0 + apm_power_off(); +#endif +} + +/* * Clear registers on exec */ void diff --git a/sys/pc98/pc98/machdep.c b/sys/pc98/pc98/machdep.c index a89a96d..67b8ae7 100644 --- a/sys/pc98/pc98/machdep.c +++ b/sys/pc98/pc98/machdep.c @@ -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> @@ -696,6 +700,17 @@ cpu_halt(void) } /* + * Turn the power off. + */ +void +cpu_power_down(void) +{ +#if NAPM > 0 + apm_power_off(); +#endif +} + +/* * Clear registers on exec */ void |