Date: Sun, 24 Mar 2002 00:14:36 +0000 From: David Malone <dwmalone@maths.tcd.ie> To: Alan Larson <larson@eng.paix.net> Cc: freebsd-bugs@freebsd.org Subject: Re: halt -p doesn't if apm not enabled. Message-ID: <20020324001436.GC91340@synge.maths.tcd.ie> In-Reply-To: <200203222300.PAA30437@ground0.paix.net> References: <200203222300.PAA30437@ground0.paix.net>
next in thread | previous in thread | raw e-mail | index | archive | help
On Fri, Mar 22, 2002 at 03:00:10PM -0800, Alan Larson wrote:
> --- 285,292 ----
> {
> struct apm_softc *sc = &apm_softc;
>
> ! if (!(howto & RB_POWEROFF)) /* Powering off? */
> ! return; /* no */
> sc->bios.r.eax = (APM_BIOS << 8) | APM_SETPWSTATE;
> sc->bios.r.ebx = PMDV_ALLDEV;
> sc->bios.r.ecx = PMST_OFF;
Will this not cause a problem if the BIOS doesn't support APM,
or is this done elsewhere in the code?
David.
To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-bugs" in the body of the message
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20020324001436.GC91340>
