From owner-cvs-all@FreeBSD.ORG Tue Apr 29 22:27:02 2003 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 DBA4A37B401; Tue, 29 Apr 2003 22:27:02 -0700 (PDT) Received: from repoman.freebsd.org (repoman.freebsd.org [216.136.204.115]) by mx1.FreeBSD.org (Postfix) with ESMTP id 8D16443FCB; Tue, 29 Apr 2003 22:27:02 -0700 (PDT) (envelope-from marcel@FreeBSD.org) Received: from repoman.freebsd.org (localhost [127.0.0.1]) by repoman.freebsd.org (8.12.6/8.12.6) with ESMTP id h3U5R20U044576; Tue, 29 Apr 2003 22:27:02 -0700 (PDT) (envelope-from marcel@repoman.freebsd.org) Received: (from marcel@localhost) by repoman.freebsd.org (8.12.6/8.12.6/Submit) id h3U5R25r044572; Tue, 29 Apr 2003 22:27:02 -0700 (PDT) Message-Id: <200304300527.h3U5R25r044572@repoman.freebsd.org> From: Marcel Moolenaar Date: Tue, 29 Apr 2003 22:27:02 -0700 (PDT) To: src-committers@FreeBSD.org, cvs-src@FreeBSD.org, cvs-all@FreeBSD.org X-FreeBSD-CVS-Branch: HEAD Subject: cvs commit: src/sys/dev/acpica acpi_timer.c 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, 30 Apr 2003 05:27:03 -0000 marcel 2003/04/29 22:27:02 PDT FreeBSD src repository Modified files: sys/dev/acpica acpi_timer.c Log: o Don't announce that the timer is good when in fact it isn't timing at all (ie reads yield constant values). Display the width as the difference between max and min so that constant timers have width zero. o Get the address of the timer from the XPmTmrBlk field instead of the V1_PmTmrBlk field. The former is a generic address and can specify a memory mapped I/O address. Remove to account for this. The timer is now properly configured on machines with ACPI v2 tables, whether PIO or MEMIO. Note that the acpica code converts v1 tables into v2 tables so the address is always present in XPmTmrBlk. o Replace the TIMER_READ macro with a call to the read_counter() function and add a barrier to make sure that we observe proper ordering of the reads. Revision Changes Path 1.22 +43 -22 src/sys/dev/acpica/acpi_timer.c