From owner-cvs-all@FreeBSD.ORG Wed Jun 16 20:27:55 2004 Return-Path: Delivered-To: cvs-all@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 50AF816A4CE; Wed, 16 Jun 2004 20:27:55 +0000 (GMT) Received: from repoman.freebsd.org (repoman.freebsd.org [216.136.204.115]) by mx1.FreeBSD.org (Postfix) with ESMTP id 325B043D45; Wed, 16 Jun 2004 20:27:55 +0000 (GMT) (envelope-from imp@FreeBSD.org) Received: from repoman.freebsd.org (localhost [127.0.0.1]) by repoman.freebsd.org (8.12.11/8.12.11) with ESMTP id i5GKRou9026616; Wed, 16 Jun 2004 20:27:50 GMT (envelope-from imp@repoman.freebsd.org) Received: (from imp@localhost) by repoman.freebsd.org (8.12.11/8.12.11/Submit) id i5GKRoMH026615; Wed, 16 Jun 2004 20:27:50 GMT (envelope-from imp) Message-Id: <200406162027.i5GKRoMH026615@repoman.freebsd.org> From: Warner Losh Date: Wed, 16 Jun 2004 20:27:50 +0000 (UTC) To: src-committers@FreeBSD.org, cvs-src@FreeBSD.org, cvs-all@FreeBSD.org X-FreeBSD-CVS-Branch: HEAD Subject: cvs commit: src/sys/i386/bios apm.c apm.h X-BeenThere: cvs-all@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: CVS commit messages for the entire tree List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 16 Jun 2004 20:27:55 -0000 imp 2004-06-16 20:27:50 UTC FreeBSD src repository Modified files: sys/i386/bios apm.c apm.h Log: o Return ai_batteries as 0xffffffff instead of -1. This is a nop change, but placates gcc which seems to like to complain about -1 being assigned to an unsigned value. It is well defined and intended, but since signess bugs are being hunted just change to 0xffffffff. o Mask the lower 8 bits, not the lower 4 bits for the ai_capabilities word. All 8 bits are defined and the 0xf was almost certainly a typo. o Define APM_UNKNOWN to 0xff for emulation layer. Revision Changes Path 1.142 +2 -2 src/sys/i386/bios/apm.c 1.4 +1 -0 src/sys/i386/bios/apm.h