From owner-freebsd-bugs Sat Mar 23 16:14:42 2002 Delivered-To: freebsd-bugs@freebsd.org Received: from salmon.maths.tcd.ie (salmon.maths.tcd.ie [134.226.81.11]) by hub.freebsd.org (Postfix) with SMTP id 2742C37B417 for ; Sat, 23 Mar 2002 16:14:38 -0800 (PST) Received: from synge.maths.tcd.ie by salmon.maths.tcd.ie with SMTP id ; 24 Mar 2002 00:14:37 +0000 (GMT) Date: Sun, 24 Mar 2002 00:14:36 +0000 From: David Malone To: Alan Larson Cc: freebsd-bugs@freebsd.org Subject: Re: halt -p doesn't if apm not enabled. Message-ID: <20020324001436.GC91340@synge.maths.tcd.ie> References: <200203222300.PAA30437@ground0.paix.net> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <200203222300.PAA30437@ground0.paix.net> User-Agent: Mutt/1.3.25i Sender: owner-freebsd-bugs@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.org 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